mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-06 19:40:10 +02:00
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.
This commit is contained in:
@@ -1183,19 +1183,6 @@ LRESULT CALLBACK window_proc(HWND handle,
|
|||||||
handle, GWLP_USERDATA,
|
handle, GWLP_USERDATA,
|
||||||
static_cast<LONG_PTR>(reinterpret_cast<size_t>(editor)));
|
static_cast<LONG_PTR>(reinterpret_cast<size_t>(editor)));
|
||||||
} break;
|
} 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<Editor*>(
|
|
||||||
GetWindowLongPtr(handle, GWLP_USERDATA));
|
|
||||||
if (!editor || editor->use_xembed_) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
WINDOWPOS* info = reinterpret_cast<WINDOWPOS*>(lParam);
|
|
||||||
info->flags |= SWP_DEFERERASE | SWP_NOCOPYBITS;
|
|
||||||
} break;
|
|
||||||
case WM_TIMER: {
|
case WM_TIMER: {
|
||||||
auto editor = reinterpret_cast<Editor*>(
|
auto editor = reinterpret_cast<Editor*>(
|
||||||
GetWindowLongPtr(handle, GWLP_USERDATA));
|
GetWindowLongPtr(handle, GWLP_USERDATA));
|
||||||
|
|||||||
Reference in New Issue
Block a user