Get rid of SWP_NOCOPYBITS

This commit is contained in:
Robbert van der Helm
2022-11-20 14:20:33 +01:00
parent ddaf4e91cc
commit 9fd6603ce3
2 changed files with 11 additions and 3 deletions
+3 -3
View File
@@ -461,7 +461,7 @@ void Editor::resize(uint16_t width, uint16_t height) {
});
SetWindowPos(win32_window_.handle_, nullptr, 0, 0, 0, 0,
SWP_NOSIZE | SWP_NOREDRAW | SWP_NOACTIVATE |
SWP_NOCOPYBITS | SWP_NOOWNERZORDER | SWP_DEFERERASE);
SWP_NOOWNERZORDER | SWP_DEFERERASE);
// Make sure that after the resize the screen coordinates always match
// up properly. Without this Soundtoys Crystallizer might appear choppy
@@ -1180,7 +1180,7 @@ LRESULT CALLBACK window_proc(HWND handle,
handle, GWLP_USERDATA,
static_cast<LONG_PTR>(reinterpret_cast<size_t>(editor)));
} break;
// Setting `SWP_NOCOPYBITS` somewhat reduces flickering on
// Setting `SWP_DEFERERASE` 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: {
@@ -1191,7 +1191,7 @@ LRESULT CALLBACK window_proc(HWND handle,
}
WINDOWPOS* info = reinterpret_cast<WINDOWPOS*>(lParam);
info->flags |= SWP_NOCOPYBITS | SWP_DEFERERASE;
info->flags |= SWP_DEFERERASE;
} break;
case WM_TIMER: {
auto editor = reinterpret_cast<Editor*>(