From: DeaDDooMER Date: Thu, 29 Dec 2022 16:48:47 +0000 (+0300) Subject: gui: fix build with disabled render X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=commitdiff_plain;h=b60024b9a25fbf72f8e83cfe6b023d0cc4f933c5 gui: fix build with disabled render --- diff --git a/src/game/g_gui.pas b/src/game/g_gui.pas index 5e6d9b2..c6b22b8 100644 --- a/src/game/g_gui.pas +++ b/src/game/g_gui.pas @@ -992,9 +992,9 @@ begin if FButtons[a] <> nil then _x := Min(_x, (gScreenWidth div 2)-(FButtons[a].GetWidth div 2)); - lw := 0; lh := 0; {$IFDEF ENABLE_RENDER} + lw := 0; if FHeader = nil then r_Render_GetLogoSize(lw, lh); {$ENDIF}