From 4aadb11a53a7a185a06514ef62c9767117eb2ee2 Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Wed, 27 Jul 2011 11:25:35 -0500 Subject: [PATCH] gdiplus: Don't use a gdi32 brush for semi-transparent hatch brushes. --- dlls/gdiplus/graphics.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index 324b895..8ad0c1d 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -669,8 +669,13 @@ static INT brush_can_fill_path(GpBrush *brush) switch (brush->bt) { case BrushTypeSolidColor: - case BrushTypeHatchFill: return 1; + case BrushTypeHatchFill: + { + GpHatch *hatch = (GpHatch*)brush; + return ((hatch->forecol & 0xff000000) == 0xff000000) && + ((hatch->backcol & 0xff000000) == 0xff000000); + } case BrushTypeLinearGradient: case BrushTypeTextureFill: /* Gdi32 isn't much help with these, so we should use brush_fill_pixels instead. */ -- 1.7.1