Merge branch 'emfdc_Add_support_of_monochrome_bitmap_to_get_bitmap_info' into 'master'

gdi32: Add support of monochrome bitmap to get_bitmap_info()

See merge request wine/wine!6782
This commit is contained in:
AlexeyLushnikov 2024-11-19 22:27:35 +00:00
commit 5499230dea

View file

@ -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)[1] = 0x00ff00;
((DWORD *)dib_info->bmiColors)[2] = 0x0000ff; ((DWORD *)dib_info->bmiColors)[2] = 0x0000ff;
break; break;
case 1:
((DWORD *)dib_info->bmiColors)[0] = 0x000000;
((DWORD *)dib_info->bmiColors)[1] = 0xffffff;
break;
default: default:
if (dib_info->bmiHeader.biBitCount > 8) break; if (dib_info->bmiHeader.biBitCount > 8) break;
if (!(palette = GetCurrentObject( *hdc, OBJ_PAL ))) return FALSE; if (!(palette = GetCurrentObject( *hdc, OBJ_PAL ))) return FALSE;