CreateBitmap16 should use only the first byte of planes & bpp.

This commit is contained in:
Richard Cohen 2005-04-16 11:18:43 +00:00 committed by Alexandre Julliard
parent a9d5de8414
commit a1d66596b5
1 changed files with 1 additions and 1 deletions

View File

@ -797,7 +797,7 @@ INT16 WINAPI CombineRgn16(HRGN16 hDest, HRGN16 hSrc1, HRGN16 hSrc2, INT16 mode)
HBITMAP16 WINAPI CreateBitmap16( INT16 width, INT16 height, UINT16 planes,
UINT16 bpp, LPCVOID bits )
{
return HBITMAP_16( CreateBitmap( width, height, planes, bpp, bits ) );
return HBITMAP_16( CreateBitmap( width, height, planes & 0xff, bpp & 0xff, bits ) );
}