Wait for vblank before redrawing a window

Change-Id: I1c57e2eabab6d234bec8e09afa3b50c541094dfd
This commit is contained in:
Romain Goyet
2017-04-07 11:08:09 +02:00
parent 4dc7afa4c3
commit 95aaebf659

View File

@@ -1,4 +1,5 @@
#include <escher/window.h>
#include <ion.h>
extern "C" {
#include <assert.h>
}
@@ -12,6 +13,7 @@ void Window::redraw(bool force) {
if (force) {
markRectAsDirty(bounds());
}
Ion::Display::waitForVBlank();
View::redraw(bounds());
}