[PATCH v2 0/1] MR11140: win32u: Always flush the window surface in expose_window_surface.
This matches the old behavior for winewayland before this function was introduced. For future work (like for fractional scaling or xdg-popup), expose does need to flush the window surface every single time, not just when there is an alpha mask. -- v2: win32u: Always flush the window surface in expose_window_surface. https://gitlab.winehq.org/wine/wine/-/merge_requests/11140
From: Etaash Mathamsetty <etaash.mathamsetty@gmail.com> --- dlls/win32u/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/win32u/window.c b/dlls/win32u/window.c index c3a32dde6cf..7c17b32787e 100644 --- a/dlls/win32u/window.c +++ b/dlls/win32u/window.c @@ -2383,7 +2383,7 @@ static BOOL expose_window_surface( HWND hwnd, UINT flags, const RECT *rect, UINT add_bounds_rect( &surface->bounds, &exposed_rect ); } window_surface_unlock( surface ); - if (surface->alpha_mask) window_surface_flush( surface ); + window_surface_flush( surface ); window_surface_release( surface ); return TRUE; } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/11140
participants (2)
-
Etaash Mathamsetty -
Etaash Mathamsetty (@etaash.mathamsetty)