1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Reload the textures when the window is exposed

This commit is contained in:
Mathieu Schroeter 2018-08-25 00:12:47 +02:00
parent 1d7934e936
commit a505cdd117

View File

@ -346,9 +346,15 @@ HandleEvent (const SDL_Event & event)
{
#ifndef DEBUG
Point totalDim, iconDim;
#endif /* !DEBUG */
switch (event.window.event)
{
case SDL_WINDOWEVENT_EXPOSED:
g_pPixmap->ReloadTargetTextures ();
break;
#ifndef DEBUG
case SDL_WINDOWEVENT_FOCUS_GAINED:
g_pause = false;
@ -379,8 +385,8 @@ HandleEvent (const SDL_Event & event)
if (g_pMovie)
g_pMovie->Pause ();
return;
}
#endif /* !DEBUG */
}
break;
}