From ae6ce97db0315da5d979db2de43510008a30a2ba 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 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index 324b895524..8ad0c1d3da 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. */ -- 2.32.0.93.g670b81a890