[PATCH 0/1] MR9876: win32u: Use surfaces for client area if the backend doesn't support PutImage.
This is the case on macOS and some other drivers. It will not change anything on X11 which supports drawing to the window directly. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9876
From: Rémi Bernon <rbernon@codeweavers.com> This is the case on macOS and some other drivers. It will not change anything on X11 which supports drawing to the window directly. --- dlls/win32u/dce.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/win32u/dce.c b/dlls/win32u/dce.c index 5d6cbb70194..ed7d82cb8ba 100644 --- a/dlls/win32u/dce.c +++ b/dlls/win32u/dce.c @@ -863,7 +863,7 @@ static void update_visible_region( struct dce *dce ) (flags & DCX_INTERSECTRGN) ? RGN_AND : RGN_DIFF ); /* don't use a surface to paint the client area of OpenGL windows */ - if (!(paint_flags & SET_WINPOS_PIXEL_FORMAT) || (flags & DCX_WINDOW)) + if (!(paint_flags & SET_WINPOS_PIXEL_FORMAT && user_driver->dc_funcs.pPutImage) || (flags & DCX_WINDOW)) { win = get_win_ptr( top_win ); if (win && win != WND_DESKTOP && win != WND_OTHER_PROCESS) -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/9876
participants (2)
-
Rémi Bernon -
Rémi Bernon (@rbernon)