DEADSOFTWARE

gui: fix build with disabled render
authorDeaDDooMER <deaddoomer@deadsoftware.ru>
Thu, 29 Dec 2022 16:48:47 +0000 (19:48 +0300)
committerDeaDDooMER <deaddoomer@deadsoftware.ru>
Fri, 9 Jun 2023 09:10:05 +0000 (12:10 +0300)
src/game/g_gui.pas

index 5e6d9b2f45e18fa882580f35c7d2edb6e01e1740..c6b22b8e82d3cbc3b3af1615a38921ee07c4e442 100644 (file)
@@ -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}