winex11.drv: Fallback to X11DRV_SHM_NONE in X11DRV_DIB_DoCopyDIBSection() if dest doesn't match the pixmap.

Falling back to X11DRV_SHM_IMAGE doesn't work, the image's data isn't in
shared memory if the pixmap was created as Shm pixmap.
This commit is contained in:
Henri Verbeet 2009-08-07 11:53:17 +02:00 committed by Alexandre Julliard
parent a4c1c66c87
commit 85fe381daf
1 changed files with 1 additions and 1 deletions

View File

@ -4300,7 +4300,7 @@ static void X11DRV_DIB_DoCopyDIBSection(X_PHYSBITMAP *physBitmap, BOOL toDIB,
#ifdef HAVE_LIBXXSHM
if (physBitmap->shm_mode == X11DRV_SHM_PIXMAP && physBitmap->pixmap != dest)
{
descr.shm_mode = X11DRV_SHM_IMAGE;
descr.shm_mode = X11DRV_SHM_NONE;
}
#endif
descr.dibpitch = dibSection.dsBm.bmWidthBytes;