DEADSOFTWARE

gl: shade titlepic in main menu
authorDeaDDooMER <deaddoomer@deadsoftware.ru>
Thu, 16 Feb 2023 19:20:00 +0000 (22:20 +0300)
committerDeaDDooMER <deaddoomer@deadsoftware.ru>
Fri, 9 Jun 2023 09:15:07 +0000 (12:15 +0300)
src/game/renders/opengl/r_render.pas

index 3c2cd6fefbc27760a0871ea29e28a5e707400d8b..bfd0d826ec3a157f2b92d05a5aec88552e54b992 100644 (file)
@@ -1188,7 +1188,14 @@ implementation
       // TODO F key handle
       case gState of
         STATE_NONE: (* do nothing *) ;
-        STATE_MENU: r_Common_DrawBackground(GameWad + ':TEXTURES/TITLE');
+        STATE_MENU:
+        begin
+          r_Common_DrawBackground(GameWad + ':TEXTURES/TITLE');
+          {$IFDEF ENABLE_MENU}
+            if g_ActiveWindow <> nil then
+              r_Draw_FillRect(0, 0, gScreenWidth, gScreenHeight, 0, 0, 0, 105);
+          {$ENDIF}
+        end;
         STATE_FOLD:
         begin
           if EndingGameCounter > 0 then