-- v2: win32u: Initialize surface with white colour on creation.
From: Paul Gofman pgofman@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; }
v2: - drop the test.
This merge request was approved by Rémi Bernon.