Commit 85fe381d authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

winex11.drv: Fallback to X11DRV_SHM_NONE in X11DRV_DIB_DoCopyDIBSection() if…

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.
parent a4c1c66c
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment