From: Paul Gofman pgofman@codeweavers.com
--- dlls/user32/tests/win.c | 4 ++-- dlls/win32u/dce.c | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c index 6baf83e39e5..cbdd4a7b591 100644 --- a/dlls/user32/tests/win.c +++ b/dlls/user32/tests/win.c @@ -14294,7 +14294,7 @@ static LRESULT WINAPI test_initial_surface_colour_window_proc( HWND hwnd, UINT m if (!r.left && !r.top && !r.right && !r.bottom) ok( c == CLR_INVALID, "got %#lx.\n", c ); else - todo_wine ok( c == 0xffffff, "got %#lx, msg %#x.\n", c, msg ); + ok( c == 0xffffff, "got %#lx, msg %#x.\n", c, msg ); return TRUE;
case WM_WINDOWPOSCHANGING: @@ -14308,7 +14308,7 @@ static LRESULT WINAPI test_initial_surface_colour_window_proc( HWND hwnd, UINT m hdc = GetDC( hwnd ); c = GetPixel(hdc, 50, 50); ReleaseDC(hwnd, hdc); - todo_wine ok( c == 0xffffff, "got %#lx, msg %#x.\n", c, msg ); + ok( c == 0xffffff, "got %#lx, msg %#x.\n", c, msg ); return TRUE; } return DefWindowProcA( hwnd, msg, wparam, lparam ); 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; }