Commit 8679d0b1 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

winex11: Sync the dib-section bits before writing to the image.

parent 8a947065
......@@ -1916,10 +1916,12 @@ DWORD X11DRV_PutImage( PHYSDEV dev, HBITMAP hbitmap, BITMAPINFO *info, const str
image->data = dst_bits.ptr;
if (bitmap)
{
X11DRV_DIB_Lock( bitmap, DIB_Status_GdiMod );
wine_tsx11_lock();
XPutImage( gdi_display, bitmap->pixmap, get_bitmap_gc(depth), image, dst_bits.offset, 0,
rect->left, rect->top, width, height );
wine_tsx11_unlock();
X11DRV_DIB_Unlock( bitmap, TRUE );
}
else
{
......
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