winex11: Fix GetDIBits with monochrome pixmaps.

This commit is contained in:
Michael Karcher 2008-08-16 13:23:49 +02:00 committed by Alexandre Julliard
parent 48b459afff
commit 3843d5beee
2 changed files with 1 additions and 2 deletions

View File

@ -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);

View File

@ -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 );
}