From c3c0f96585d2b1aeb927b0d764c95a94ce95e029 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Thu, 31 Dec 2020 13:30:54 +0100 Subject: [PATCH] Get rid of CS_HREDRAW and CS_VREDRAW This causes the window to black out to fully redraw even when the plugin's editor window can just draw over the new parts. --- src/wine-host/editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wine-host/editor.cpp b/src/wine-host/editor.cpp index af22697a..697e7f7f 100644 --- a/src/wine-host/editor.cpp +++ b/src/wine-host/editor.cpp @@ -675,7 +675,7 @@ ATOM register_window_class(std::string window_class_name) { WNDCLASSEX window_class{}; window_class.cbSize = sizeof(WNDCLASSEX); - window_class.style = CS_DBLCLKS | CS_HREDRAW | CS_VREDRAW; + window_class.style = CS_DBLCLKS; window_class.lpfnWndProc = window_proc; window_class.hInstance = GetModuleHandle(nullptr); window_class.hCursor = LoadCursor(nullptr, IDC_ARROW);