From d50a8576e70ab84af42fb0bbac56c2d74ddc1898 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 11 May 2019 07:25:22 +1000 Subject: Backport: Feature [feature-requests:#1283]. Standardise spelling - "color" -> "colour". Backport of changeset 7498:7dd63f4402ae. --- win32/PlatWin.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'win32') diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 10fded545..523354533 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -431,7 +431,7 @@ class SurfaceGDI : public Surface { int codePage = 0; - void BrushColor(ColourDesired back) noexcept; + void BrushColour(ColourDesired back) noexcept; void SetFont(const Font &font_) noexcept; void Clear() noexcept; @@ -569,7 +569,7 @@ void SurfaceGDI::PenColour(ColourDesired fore) { penOld = SelectPen(hdc, pen); } -void SurfaceGDI::BrushColor(ColourDesired back) noexcept { +void SurfaceGDI::BrushColour(ColourDesired back) noexcept { if (brush) { ::SelectObject(hdc, brushOld); ::DeleteObject(brush); @@ -610,7 +610,7 @@ void SurfaceGDI::LineTo(int x_, int y_) { void SurfaceGDI::Polygon(Point *pts, size_t npts, ColourDesired fore, ColourDesired back) { PenColour(fore); - BrushColor(back); + BrushColour(back); std::vector outline; for (size_t i=0; i(pts[i].x), static_cast(pts[i].y)}; @@ -621,7 +621,7 @@ void SurfaceGDI::Polygon(Point *pts, size_t npts, ColourDesired fore, ColourDesi void SurfaceGDI::RectangleDraw(PRectangle rc, ColourDesired fore, ColourDesired back) { PenColour(fore); - BrushColor(back); + BrushColour(back); const RECT rcw = RectFromPRectangle(rc); ::Rectangle(hdc, rcw.left, rcw.top, rcw.right, rcw.bottom); } @@ -647,7 +647,7 @@ void SurfaceGDI::FillRectangle(PRectangle rc, Surface &surfacePattern) { void SurfaceGDI::RoundedRectangle(PRectangle rc, ColourDesired fore, ColourDesired back) { PenColour(fore); - BrushColor(back); + BrushColour(back); const RECT rcw = RectFromPRectangle(rc); ::RoundRect(hdc, rcw.left + 1, rcw.top, @@ -737,7 +737,7 @@ void SurfaceGDI::AlphaRectangle(PRectangle rc, int cornerSize, ColourDesired fil } ::DeleteDC(hMemDC); } else { - BrushColor(outline); + BrushColour(outline); FrameRect(hdc, &rcw, brush); } } @@ -794,7 +794,7 @@ void SurfaceGDI::DrawRGBAImage(PRectangle rc, int width, int height, const unsig void SurfaceGDI::Ellipse(PRectangle rc, ColourDesired fore, ColourDesired back) { PenColour(fore); - BrushColor(back); + BrushColour(back); const RECT rcw = RectFromPRectangle(rc); ::Ellipse(hdc, rcw.left, rcw.top, rcw.right, rcw.bottom); } -- cgit v1.2.3