Huw Davies : gdi32: Add support for the null brush.

Alexandre Julliard julliard at winehq.org
Fri May 13 11:17:52 CDT 2011


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

Author: Huw Davies <huw at codeweavers.com>
Date:   Thu May 12 14:11:56 2011 +0100

gdi32: Add support for the null brush.

---

 dlls/gdi32/dibdrv/objects.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/dlls/gdi32/dibdrv/objects.c b/dlls/gdi32/dibdrv/objects.c
index 681a8cb..800db12 100644
--- a/dlls/gdi32/dibdrv/objects.c
+++ b/dlls/gdi32/dibdrv/objects.c
@@ -1062,6 +1062,11 @@ static BOOL pattern_brush(dibdrv_physdev *pdev, int num, RECT *rects)
     return TRUE;
 }
 
+static BOOL null_brush(dibdrv_physdev *pdev, int num, RECT *rects)
+{
+    return TRUE;
+}
+
 void update_brush_rop( dibdrv_physdev *pdev, INT rop )
 {
     pdev->brush_rop = rop;
@@ -1101,6 +1106,11 @@ HBRUSH CDECL dibdrv_SelectBrush( PHYSDEV dev, HBRUSH hbrush )
         pdev->defer &= ~DEFER_BRUSH;
         break;
 
+    case BS_NULL:
+        pdev->brush_rects = null_brush;
+        pdev->defer &= ~DEFER_BRUSH;
+        break;
+
     case BS_DIBPATTERN:
     {
         BITMAPINFOHEADER *bi = GlobalLock((HGLOBAL)logbrush.lbHatch);




More information about the wine-cvs mailing list