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:
parent
1d7934e936
commit
a505cdd117
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user