From 0f9eea2558beb53b6bfd5fbab130aa1093b0433e Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sat, 1 Mar 2025 19:07:02 +0100 Subject: [PATCH] Drop the SWP_NOCOPYBITS on resize hack This shouldn't be necessary anymore. It can always be added back later if there is still flickering. --- src/wine-host/editor.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/wine-host/editor.cpp b/src/wine-host/editor.cpp index 4b9829e1..82c4726c 100644 --- a/src/wine-host/editor.cpp +++ b/src/wine-host/editor.cpp @@ -1183,19 +1183,6 @@ LRESULT CALLBACK window_proc(HWND handle, handle, GWLP_USERDATA, static_cast(reinterpret_cast(editor))); } break; - // Setting `SWP_NOCOPYBITS` somewhat reduces flickering on - // `fix_local_coordinates()` calls with plugins that don't do double - // buffering since it speeds up the redrawing process. - case WM_WINDOWPOSCHANGING: { - auto editor = reinterpret_cast( - GetWindowLongPtr(handle, GWLP_USERDATA)); - if (!editor || editor->use_xembed_) { - break; - } - - WINDOWPOS* info = reinterpret_cast(lParam); - info->flags |= SWP_DEFERERASE | SWP_NOCOPYBITS; - } break; case WM_TIMER: { auto editor = reinterpret_cast( GetWindowLongPtr(handle, GWLP_USERDATA));