Fix window redrawing (#197)

This commit is contained in:
FreeSlave 2016-03-11 22:14:10 +03:00
parent d8f10f01bf
commit dd0df51ba3
1 changed files with 3 additions and 0 deletions

View File

@ -1068,6 +1068,9 @@ class SDLPlatform : Platform {
break;
case SDL_WINDOWEVENT_RESTORED:
debug(DebugSDL) Log.d("SDL_WINDOWEVENT_RESTORED");
version(linux) { //not sure if needed on Windows or OSX. Also need to check on FreeBSD
w.redraw();
}
break;
case SDL_WINDOWEVENT_ENTER:
debug(DebugSDL) Log.d("SDL_WINDOWEVENT_ENTER");