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:
parent
47e2aa7a40
commit
56ac26c794
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue