Vincent Povirk : gdiplus: Don' t use a gdi32 brush for semi-transparent hatch brushes.
Alexandre Julliard
julliard at winehq.org
Wed Jul 27 13:25:30 CDT 2011
Module: wine
Branch: master
Commit: ae6ce97db0315da5d979db2de43510008a30a2ba
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ae6ce97db0315da5d979db2de43510008a30a2ba
Author: Vincent Povirk <vincent at codeweavers.com>
Date: Wed Jul 27 11:25:35 2011 -0500
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. */
More information about the wine-cvs
mailing list