From 3ad02ff31705ff568db2ec87244f2c0214112f9b Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 3 May 2021 08:20:04 +1000 Subject: Rename Opaque to WithoutAlpha as it returns a colour with 0 alpha. New Opaque method returns a colour with maximum (0xff) alpha. --- win32/PlatWin.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'win32') 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 outline; std::transform(pts, pts + npts, std::back_inserter(outline), POINTFromPoint); ::Polygon(hdc, outline.data(), static_cast(npts)); -- cgit v1.2.3