X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fopengl%2Fr_game.pas;h=81ed2d311ec6d4babc0aa024f256bab4535d08a7;hb=483304f6afb4ad7d8b16624ce835cbae9a60bb3a;hp=672ceb45df3df36fdcb9658cb80bb21a1dc8adee;hpb=35f9a0ca016af5ef3dac8dc6ba97dcbf659f6176;p=d2df-sdl.git diff --git a/src/game/opengl/r_game.pas b/src/game/opengl/r_game.pas index 672ceb4..81ed2d3 100644 --- a/src/game/opengl/r_game.pas +++ b/src/game/opengl/r_game.pas @@ -42,7 +42,7 @@ implementation g_holmes, {$ENDIF} {$IFDEF ENABLE_MENU} - g_gui, g_menu, + g_gui, g_menu, r_gui, {$ENDIF} {$IFDEF ENABLE_GFX} g_gfx, r_gfx, @@ -212,6 +212,8 @@ end; procedure r_Game_Free; begin + e_CharFont_Remove(gMenuFont); + e_CharFont_Remove(gMenuSmallFont); g_Texture_Delete('NOTEXTURE'); g_Texture_Delete('TEXTURE_PLAYER_HUD'); g_Texture_Delete('TEXTURE_PLAYER_HUDBG'); @@ -810,9 +812,7 @@ begin // HACK: take stats screenshot immediately after the first frame of the stats showing if gScreenshotStats and (not StatShotDone) and (Length(CustomStat.PlayerStat) > 1) then begin -{$IFNDEF HEADLESS} g_TakeScreenShot('stats/' + StatFilename); -{$ENDIF} StatShotDone := True; end; end; @@ -2166,13 +2166,11 @@ begin //e_DrawFillQuad(0, 0, gScreenWidth-1, gScreenHeight-1, 48, 48, 48, 180); e_DarkenQuadWH(0, 0, gScreenWidth, gScreenHeight, 150); end; - g_ActiveWindow.Draw(); + r_GUI_Draw_Window(g_ActiveWindow); end; {$ENDIF} -{$IFNDEF HEADLESS} r_Console_Draw(); -{$ENDIF} if g_debug_Sounds and gGameOn then begin