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.
This commit is contained in:
parent
7e941c8388
commit
13d0c285ca
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue