diff options
Diffstat (limited to 'win32/PlatWin.cxx')
-rw-r--r-- | win32/PlatWin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index feb7b6321..f56b14f8f 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -704,8 +704,8 @@ void SurfaceGDI::PolyLine(const Point *pts, size_t npts, Stroke stroke) { } void SurfaceGDI::Polygon(const Point *pts, size_t npts, FillStroke fillStroke) { - PenColour(fillStroke.stroke.colour.Opaque(), fillStroke.stroke.width); - BrushColour(fillStroke.fill.colour.Opaque()); + PenColour(fillStroke.stroke.colour.WithoutAlpha(), fillStroke.stroke.width); + BrushColour(fillStroke.fill.colour.WithoutAlpha()); std::vector<POINT> outline; std::transform(pts, pts + npts, std::back_inserter(outline), POINTFromPoint); ::Polygon(hdc, outline.data(), static_cast<int>(npts)); |