From cec1d9ea562e3d52c98f1219db5e186943f2f0d6 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 12 Feb 2017 11:07:22 +0100 Subject: Refactor/introduce widget and windiow redraw/dirty mechanism to eradicate unnecessary rendering passes during event handling. --- plugingui/nativewindow_win32.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'plugingui/nativewindow_win32.cc') diff --git a/plugingui/nativewindow_win32.cc b/plugingui/nativewindow_win32.cc index 23c9012..669ec13 100644 --- a/plugingui/nativewindow_win32.cc +++ b/plugingui/nativewindow_win32.cc @@ -379,10 +379,6 @@ void NativeWindowWin32::show() ShowWindow(m_hwnd, SW_SHOW); } -void NativeWindowWin32::handleBuffer() -{ -} - void NativeWindowWin32::hide() { ShowWindow(m_hwnd, SW_HIDE); @@ -390,6 +386,7 @@ void NativeWindowWin32::hide() void NativeWindowWin32::redraw() { + // Send WM_PAINT message. Buffer transfering is handled in MessageHandler. if(parent_window == nullptr) { RedrawWindow(m_hwnd, nullptr, nullptr, RDW_ERASE|RDW_INVALIDATE); -- cgit v1.2.3