mirror of
https://gitlab.winehq.org/wine/wine.git
synced 2024-11-21 17:09:06 -07:00
gdi32: Add support of monochrome bitmap to get_bitmap_info()
This commit is contained in:
parent
64462c82da
commit
31ff08c6f6
1 changed files with 4 additions and 0 deletions
|
@ -201,6 +201,10 @@ static UINT get_bitmap_info( HDC *hdc, HBITMAP *bitmap, BITMAPINFO *info )
|
|||
((DWORD *)dib_info->bmiColors)[1] = 0x00ff00;
|
||||
((DWORD *)dib_info->bmiColors)[2] = 0x0000ff;
|
||||
break;
|
||||
case 1:
|
||||
((DWORD *)dib_info->bmiColors)[0] = 0x000000;
|
||||
((DWORD *)dib_info->bmiColors)[1] = 0xffffff;
|
||||
break;
|
||||
default:
|
||||
if (dib_info->bmiHeader.biBitCount > 8) break;
|
||||
if (!(palette = GetCurrentObject( *hdc, OBJ_PAL ))) return FALSE;
|
||||
|
|
Loading…
Reference in a new issue