mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
Wait for vblank before redrawing a window
Change-Id: I1c57e2eabab6d234bec8e09afa3b50c541094dfd
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user