From 7bcda88861ce2e9698e61ca829c3637ce73d0baf Mon Sep 17 00:00:00 2001 From: David Capello Date: Fri, 22 May 2015 14:06:54 -0300 Subject: [PATCH] Fix redrawing of SkiaDisplay on Windows (now the cursor overlay is visible) --- src/she/skia/skia_display.cpp | 2 +- src/she/win/window.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/she/skia/skia_display.cpp b/src/she/skia/skia_display.cpp index 69bc5ade7..0387aa3ec 100644 --- a/src/she/skia/skia_display.cpp +++ b/src/she/skia/skia_display.cpp @@ -90,7 +90,7 @@ bool SkiaDisplay::flip() return false; } - m_window.invalidate(); + m_window.updateWindow(); return true; } diff --git a/src/she/win/window.h b/src/she/win/window.h index b17f3ee46..b9ea3e45e 100644 --- a/src/she/win/window.h +++ b/src/she/win/window.h @@ -148,8 +148,9 @@ namespace she { m_hcursor = hcursor; } - void invalidate() { + void updateWindow() { InvalidateRect(m_hwnd, NULL, FALSE); + UpdateWindow(m_hwnd); } HWND handle() {