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

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
src/dlangui/platforms/sdl

View File

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