[PATCH v2 0/1] MR9573: win32u: Initialize surface with white colour on creation.
-- v2: win32u: Initialize surface with white colour on creation. https://gitlab.winehq.org/wine/wine/-/merge_requests/9573
From: Paul Gofman <pgofman(a)codeweavers.com> --- dlls/win32u/dce.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/win32u/dce.c b/dlls/win32u/dce.c index d720d686bcd..5d6cbb70194 100644 --- a/dlls/win32u/dce.c +++ b/dlls/win32u/dce.c @@ -548,6 +548,8 @@ W32KAPI struct window_surface *window_surface_create( UINT size, const struct wi pthread_mutex_init( &surface->mutex, NULL ); + memset( window_surface_get_color( surface, info ), 0xff, info->bmiHeader.biSizeImage ); + TRACE( "created surface %p for hwnd %p rect %s\n", surface, hwnd, wine_dbgstr_rect( &surface->rect ) ); return surface; } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/9573
v2: - drop the test. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9573#note_123684
This merge request was approved by Rémi Bernon. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9573
participants (3)
-
Paul Gofman -
Paul Gofman (@gofman) -
Rémi Bernon