mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 20:13:36 +00:00
Whoa! Found a fix for the super old flickering window bug!
This commit is contained in:
parent
5d2a3bcc2e
commit
ccee62cca5
@ -232,8 +232,11 @@ void App::Run(ILayoutPtr layout) {
|
||||
this->CheckShowOverlay();
|
||||
this->EnsureFocusIsValid();
|
||||
|
||||
Window::WriteToScreen(this->state.input);
|
||||
/* note that order is important here! dispatch pending messages first,
|
||||
because they may muck around with layout, then redraw the window. if
|
||||
done in the reverse order, the user may observe more flicker. */
|
||||
Window::MessageQueue().Dispatch();
|
||||
Window::WriteToScreen(this->state.input);
|
||||
}
|
||||
|
||||
overlays.Clear();
|
||||
|
Loading…
Reference in New Issue
Block a user