Implement SkiaDisplay::flip()

This commit is contained in:
David Capello 2015-03-25 17:27:56 -03:00
parent 6e76d50864
commit 6f925ef161
2 changed files with 5 additions and 0 deletions

View File

@ -55,6 +55,7 @@ public:
// false if the flip couldn't be done because the display was
// resized.
bool flip() override {
m_window.invalidate();
return true;
}

View File

@ -356,6 +356,10 @@ static KeyScancode vkToScancode(int vk) {
m_captureMouse = false;
}
void invalidate() {
InvalidateRect(m_hwnd, NULL, FALSE);
}
HWND handle() {
return m_hwnd;
}