Commit 13d0c285 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

A bitmap created by CreateCompatibleBitmap should not be owned by a

driver until it is selected into it. The driver checks that the bitmap is of the correct depth in SelectBitmap.
parent 7e941c83
......@@ -178,12 +178,6 @@ HBITMAP WINAPI CreateCompatibleBitmap( HDC hdc, INT width, INT height)
hbmpRet = CreateBitmap( 1, 1, 1, 1, NULL );
else
hbmpRet = CreateBitmap( width, height, 1, dc->bitsPerPixel, NULL );
if (!BITMAP_SetOwnerDC( hbmpRet, dc ))
{
DeleteObject( hbmpRet );
hbmpRet = 0;
}
}
TRACE("\t\t%p\n", hbmpRet);
GDI_ReleaseObj(hdc);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment