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.
This commit is contained in:
Robbert van der Helm
2020-12-31 13:30:54 +01:00
parent 9d24d422d1
commit c3c0f96585
+1 -1
View File
@@ -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);