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:
parent
fc5e5eae8a
commit
01d63a217a
|
@ -3626,7 +3626,7 @@ static int X11DRV_DIB_SetImageBits( const X11DRV_DIB_IMAGEBITS_DESCR *descr )
|
||||||
descr->xSrc, descr->ySrc, descr->xDest, descr->yDest,
|
descr->xSrc, descr->ySrc, descr->xDest, descr->yDest,
|
||||||
descr->width, descr->height);
|
descr->width, descr->height);
|
||||||
#ifdef HAVE_LIBXXSHM
|
#ifdef HAVE_LIBXXSHM
|
||||||
if (descr->useShm)
|
if (descr->image && descr->useShm)
|
||||||
{
|
{
|
||||||
XShmPutImage( gdi_display, descr->drawable, descr->gc, bmpImage,
|
XShmPutImage( gdi_display, descr->drawable, descr->gc, bmpImage,
|
||||||
descr->xSrc, descr->ySrc, descr->xDest, descr->yDest,
|
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
|
#ifdef HAVE_LIBXXSHM
|
||||||
if (descr->useShm)
|
if (descr->image && descr->useShm)
|
||||||
{
|
{
|
||||||
int saveRed, saveGreen, saveBlue;
|
int saveRed, saveGreen, saveBlue;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue