Merge pull request #210 from MyLittleRobo/master

Use invalidate instead of redraw added in commits dd0df51 and fed4712
This commit is contained in:
Vadim Lopatin 2016-03-18 06:56:35 +03:00
commit 49ad644eb0
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: