mirror of https://github.com/buggins/dlangui.git
Merge pull request #350 from and3md/mouse_move_always_redraw_fix
Fix mouse move always redraw - related to #347
This commit is contained in:
commit
3c9e21e9f8
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -211,6 +211,7 @@ class SwitchButton : Widget {
|
||||||
uint st = state;
|
uint st = state;
|
||||||
img.drawTo(buf, rc, st);
|
img.drawTo(buf, rc, st);
|
||||||
}
|
}
|
||||||
|
_needDraw = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue