summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b7ff38d)
raw | patch | inline | side by side (parent: b7ff38d)
author | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Mon, 28 Aug 2017 11:21:06 +0000 (14:21 +0300) | ||
committer | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Mon, 28 Aug 2017 11:21:27 +0000 (14:21 +0300) |
src/game/g_holmes.pas | patch | blob | history | |
src/game/g_holmes_ui.inc | patch | blob | history |
diff --git a/src/game/g_holmes.pas b/src/game/g_holmes.pas
index 598e0ee48a3a07394d14476c2537f0bfcd9726a8..f97952b57b69047e50a7fc5ed12e8659fea4fb9c 100644 (file)
--- a/src/game/g_holmes.pas
+++ b/src/game/g_holmes.pas
llb.appendItem('acid2', @g_rlayer_acid2);
llb.appendItem('water', @g_rlayer_water);
llb.appendItem('foreground', @g_rlayer_fore);
- winLayers := THTopWindow.Create('visible', 10, 10);
+ winLayers := THTopWindow.Create('layers', 10, 10);
winLayers.escClose := true;
winLayers.appendChild(llb);
winLayers.closeCB := winLayersClosed;
index f9cbf3c01bde5919959d87e6f94de173251b8be1..a6daf4f491b4d6da83f65e0ffbcf53c5de212cec 100644 (file)
--- a/src/game/g_holmes_ui.inc
+++ b/src/game/g_holmes_ui.inc
if (Length(mTitle) > 0) then
begin
setScissor(mFrameWidth+3*8, 0, mWidth-mFrameWidth*2-3*8, 8);
- tx := mX+(mWidth-Length(mTitle)*8) div 2;
+ tx := (mX+3*8)+((mWidth-3*8)-Length(mTitle)*8) div 2;
fillRect(tx-3, mY, Length(mTitle)*8+3+2, 8, 0, 0, 128);
drawText8(tx, mY, mTitle, r, g, b);
end;