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:
Huw Davies 2003-11-18 00:03:51 +00:00 committed by Alexandre Julliard
parent 7e941c8388
commit 13d0c285ca
1 changed files with 0 additions and 6 deletions

View File

@ -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);