From 6f925ef1614d86351b12ef31ce112458641d68a5 Mon Sep 17 00:00:00 2001 From: David Capello Date: Wed, 25 Mar 2015 17:27:56 -0300 Subject: [PATCH] Implement SkiaDisplay::flip() --- src/she/skia/skia_display.h | 1 + src/she/win/window.h | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/she/skia/skia_display.h b/src/she/skia/skia_display.h index 43cf75209..7117c025b 100644 --- a/src/she/skia/skia_display.h +++ b/src/she/skia/skia_display.h @@ -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; } diff --git a/src/she/win/window.h b/src/she/win/window.h index 0fa99850a..01b7b6257 100644 --- a/src/she/win/window.h +++ b/src/she/win/window.h @@ -356,6 +356,10 @@ static KeyScancode vkToScancode(int vk) { m_captureMouse = false; } + void invalidate() { + InvalidateRect(m_hwnd, NULL, FALSE); + } + HWND handle() { return m_hwnd; }