SDL app use update() after events, fix always redraw when mouse move, related to #347

This commit is contained in:
and3md 2017-05-21 11:18:12 +02:00
parent f37fa6970b
commit 707d8da799
1 changed files with 3 additions and 3 deletions

View File

@ -722,7 +722,7 @@ class SDLWindow : Window {
bool res = dispatchMouseEvent(event);
if (res) {
debug(mouse) Log.d("Calling update() after mouse event");
invalidate();
update();
}
}
}
@ -951,7 +951,7 @@ class SDLWindow : Window {
bool res = dispatchKeyEvent(new KeyEvent(KeyAction.Text, 0, flags, ds));
if (res) {
debug(DebugSDL) Log.d("Calling update() after text event");
invalidate();
update();
}
return res;
}
@ -1026,7 +1026,7 @@ class SDLWindow : Window {
// }
if (res) {
debug(DebugSDL) Log.d("Calling update() after key event");
invalidate();
update();
}
return res;
}