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

Alexandre Julliard julliard at winehq.org
Wed Jul 20 12:54:42 CDT 2011


Module: wine
Branch: master
Commit: 8679d0b1382335db29997fb35bd03474157ec58c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8679d0b1382335db29997fb35bd03474157ec58c

Author: Huw Davies <huw at codeweavers.com>
Date:   Wed Jul 20 16:45:21 2011 +0100

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

---

 dlls/winex11.drv/bitblt.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/winex11.drv/bitblt.c b/dlls/winex11.drv/bitblt.c
index 92765c5..6ee5909 100644
--- a/dlls/winex11.drv/bitblt.c
+++ b/dlls/winex11.drv/bitblt.c
@@ -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
         {




More information about the wine-cvs mailing list