Use XCreateImage/XGetSubImage instead of XGetImage for

X11DRV_DIB_GetImageBits.
This commit is contained in:
James Abbatiello 2000-06-11 19:58:03 +00:00 committed by Alexandre Julliard
parent d268c22274
commit 852e73a5ce
1 changed files with 1 additions and 1 deletions

View File

@ -3008,6 +3008,7 @@ INT X11DRV_DIB_GetDIBits(
descr.dc = dc;
descr.palentry = palette->logpalette.palPalEntry;
descr.bits = bits;
descr.image = NULL;
descr.lines = lines;
descr.depth = bmp->bitmap.bmBitsPixel;
descr.drawable = (Pixmap)bmp->physBitmap;
@ -3027,7 +3028,6 @@ INT X11DRV_DIB_GetDIBits(
EnterCriticalSection( &X11DRV_CritSection );
descr.image = (XImage *)CALL_LARGE_STACK( X11DRV_BITMAP_GetXImage, bmp );
CALL_LARGE_STACK( X11DRV_DIB_GetImageBits, &descr );
LeaveCriticalSection( &X11DRV_CritSection );