Improved the pause screen somewhat when resizing.

I unfortunately can't make it perfect because rendering is too
closely tied into game logic, but this way, you at least see the
"PAUSED" text.
This commit is contained in:
Julie Marchant 2019-06-01 23:42:13 -04:00
parent 47e2aa7a40
commit 56ac26c794
1 changed files with 2 additions and 2 deletions

View File

@ -2539,12 +2539,12 @@ int game_mainLoop()
if (engine.paused)
{
gfx_createTextObject(TS_PAUSED, "PAUSED", 0, 0, FONT_WHITE);
screen_blitText(TS_PAUSED, -1, screen->h / 2);
renderer_update();
audio_pauseMusic();
while (engine.paused)
{
screen_blitText(TS_PAUSED, -1, screen->h / 2);
renderer_update();
engine.done = game_checkPauseRequest();
game_delayFrame();
}