Use invalidate instead of redraw added in commits dd0df51 and fed4712

This commit is contained in:
FreeSlave 2016-03-17 10:49:31 -04:00
parent 7ff48db516
commit 70ba227745
1 changed files with 2 additions and 2 deletions

View File

@ -1057,7 +1057,7 @@ class SDLPlatform : Platform {
case SDL_WINDOWEVENT_EXPOSED:
debug(DebugSDL) Log.d("SDL_WINDOWEVENT_EXPOSED");
version(linux) {
w.redraw();
w.invalidate();
}
break;
case SDL_WINDOWEVENT_MOVED:
@ -1072,7 +1072,7 @@ class SDLPlatform : Platform {
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();
w.invalidate();
}
break;
case SDL_WINDOWEVENT_ENTER: