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

This commit is contained in:
Huw Davies 2011-07-20 16:45:21 +01:00 committed by Alexandre Julliard
parent 8a947065dc
commit 8679d0b138
1 changed files with 2 additions and 0 deletions

View File

@ -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
{