mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 12:10:09 +02:00
Get rid of SWP_NOCOPYBITS
This commit is contained in:
@@ -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*>(
|
||||
|
||||
Reference in New Issue
Block a user