Commit a1d66596 authored by Richard Cohen's avatar Richard Cohen Committed by Alexandre Julliard

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

parent a9d5de84
...@@ -797,7 +797,7 @@ INT16 WINAPI CombineRgn16(HRGN16 hDest, HRGN16 hSrc1, HRGN16 hSrc2, INT16 mode) ...@@ -797,7 +797,7 @@ INT16 WINAPI CombineRgn16(HRGN16 hDest, HRGN16 hSrc1, HRGN16 hSrc2, INT16 mode)
HBITMAP16 WINAPI CreateBitmap16( INT16 width, INT16 height, UINT16 planes, HBITMAP16 WINAPI CreateBitmap16( INT16 width, INT16 height, UINT16 planes,
UINT16 bpp, LPCVOID bits ) UINT16 bpp, LPCVOID bits )
{ {
return HBITMAP_16( CreateBitmap( width, height, planes, bpp, bits ) ); return HBITMAP_16( CreateBitmap( width, height, planes & 0xff, bpp & 0xff, bits ) );
} }
......
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