From b60024b9a25fbf72f8e83cfe6b023d0cc4f933c5 Mon Sep 17 00:00:00 2001 From: DeaDDooMER Date: Thu, 29 Dec 2022 19:48:47 +0300 Subject: [PATCH] gui: fix build with disabled render --- src/game/g_gui.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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} -- 2.29.2