Huw Davies : winex11: Sync a dib section's bits before copying the brush.

Alexandre Julliard julliard at winehq.org
Mon Aug 22 13:29:07 CDT 2011


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

Author: Huw Davies <huw at codeweavers.com>
Date:   Fri Aug 19 16:23:56 2011 +0100

winex11: Sync a dib section's bits before copying the brush.

---

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

diff --git a/dlls/winex11.drv/brush.c b/dlls/winex11.drv/brush.c
index 8f3e576..6909d52 100644
--- a/dlls/winex11.drv/brush.c
+++ b/dlls/winex11.drv/brush.c
@@ -216,6 +216,8 @@ static BOOL BRUSH_SelectPatternBrush( X11DRV_PDEVICE *physDev, HBITMAP hbitmap )
 
     if (!physBitmap || !GetObjectW( hbitmap, sizeof(bitmap), &bitmap )) return FALSE;
 
+    X11DRV_DIB_Lock( physBitmap, DIB_Status_GdiMod );
+
     if ((physDev->depth == 1) && (physBitmap->pixmap_depth != 1))
     {
         wine_tsx11_lock();
@@ -233,6 +235,8 @@ static BOOL BRUSH_SelectPatternBrush( X11DRV_PDEVICE *physDev, HBITMAP hbitmap )
         X11DRV_XRender_CopyBrush(physDev, physBitmap, bitmap.bmWidth, bitmap.bmHeight);
     }
 
+    X11DRV_DIB_Unlock( physBitmap, TRUE );
+
     if (physBitmap->pixmap_depth > 1)
     {
 	physDev->brush.fillStyle = FillTiled;




More information about the wine-cvs mailing list