winex11: Fix GetDIBits with monochrome pixmaps.
This commit is contained in:
parent
48b459afff
commit
3843d5beee
|
@ -1552,7 +1552,6 @@ todo_wine
|
|||
}
|
||||
|
||||
/* returned bits are DWORD aligned and upside down */
|
||||
todo_wine
|
||||
ok(!memcmp(buf, dib_bits_24, sizeof(dib_bits_24)), "DIB bits don't match\n");
|
||||
DeleteObject(hbmp);
|
||||
|
||||
|
|
|
@ -4039,7 +4039,7 @@ INT X11DRV_GetDIBits( X11DRV_PDEVICE *physDev, HBITMAP hbitmap, UINT startscan,
|
|||
|
||||
bitmap_type = DIB_GetBitmapInfo( (BITMAPINFOHEADER*)info, &width, &tempHeight, &descr.infoBpp, &descr.compression);
|
||||
|
||||
if (physDev->depth > 1)
|
||||
if (physBitmap->pixmap_depth > 1)
|
||||
{
|
||||
GetPaletteEntries( GetCurrentObject( physDev->hdc, OBJ_PAL ), 0, 256, palette );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue