DEADSOFTWARE

gl: draw pause screen
authorDeaDDooMER <deaddoomer@deadsoftware.ru>
Sun, 24 Jul 2022 18:01:44 +0000 (21:01 +0300)
committerDeaDDooMER <deaddoomer@deadsoftware.ru>
Fri, 9 Jun 2023 09:02:45 +0000 (12:02 +0300)
src/game/renders/opengl/r_render.pas

index 26fd93e7b0ff41a1525eec2c79d5b346640a342c..d445dcb6a3f5ada784171cc44353140ab4d3ba7c 100644 (file)
@@ -1026,7 +1026,8 @@ implementation
 
     if gPauseMain and gGameOn {$IFDEF ENABLE_MENU}and (g_ActiveWindow = nil){$ENDIF} then
     begin
-      // TODO draw pause screen
+      r_Draw_FillRect(0, 0, gScreenWidth - 1, gScreenHeight - 1, 0, 0, 0, 105);
+      r_Common_DrawText(_lc[I_MENU_PAUSE], gScreenWidth div 2, gScreenHeight div 2, 255, 255, 255, 255, menufont, TBasePoint.BP_CENTER);
     end;
 
     if not gGameOn then