gdiplus: Don't use a gdi32 brush for semi-transparent hatch brushes.

This commit is contained in:
Vincent Povirk 2011-07-27 11:25:35 -05:00 committed by Alexandre Julliard
parent 9a3aa863be
commit ae6ce97db0

View file

@ -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. */