x11drv: Fix X11DRV_DIB_SetImageBits and X11DRV_DIB_GetImageBits to

check for passed image, and do not use shared memory extension for
temporary created image.
This commit is contained in:
Cyril Margorin 2006-02-13 13:25:01 +01:00 committed by Alexandre Julliard
parent fc5e5eae8a
commit 01d63a217a
1 changed files with 2 additions and 2 deletions

View File

@ -3626,7 +3626,7 @@ static int X11DRV_DIB_SetImageBits( const X11DRV_DIB_IMAGEBITS_DESCR *descr )
descr->xSrc, descr->ySrc, descr->xDest, descr->yDest,
descr->width, descr->height);
#ifdef HAVE_LIBXXSHM
if (descr->useShm)
if (descr->image && descr->useShm)
{
XShmPutImage( gdi_display, descr->drawable, descr->gc, bmpImage,
descr->xSrc, descr->ySrc, descr->xDest, descr->yDest,
@ -3670,7 +3670,7 @@ static int X11DRV_DIB_GetImageBits( const X11DRV_DIB_IMAGEBITS_DESCR *descr )
}
#ifdef HAVE_LIBXXSHM
if (descr->useShm)
if (descr->image && descr->useShm)
{
int saveRed, saveGreen, saveBlue;