aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/PlatWin.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2019-05-11 07:25:22 +1000
committerNeil <nyamatongwe@gmail.com>2019-05-11 07:25:22 +1000
commitdbb3dbe28d22720639967832cef6f6e8163d472a (patch)
tree91edf03db5070f9429602e8c3ab0b94a1225f0ab /win32/PlatWin.cxx
parent796d60abaa071e4baa4f047249cb8955071478b0 (diff)
downloadscintilla-mirror-dbb3dbe28d22720639967832cef6f6e8163d472a.tar.gz
Feature [feature-requests:#1283]. Standardise spelling - "color" -> "colour".
Diffstat (limited to 'win32/PlatWin.cxx')
-rw-r--r--win32/PlatWin.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx
index d9c3a232f..28587b917 100644
--- a/win32/PlatWin.cxx
+++ b/win32/PlatWin.cxx
@@ -432,7 +432,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;
@@ -573,7 +573,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);
@@ -614,7 +614,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<POINT> outline;
for (size_t i=0; i<npts; i++) {
POINT pt = {static_cast<LONG>(pts[i].x), static_cast<LONG>(pts[i].y)};
@@ -625,7 +625,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);
}
@@ -651,7 +651,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,
@@ -741,7 +741,7 @@ void SurfaceGDI::AlphaRectangle(PRectangle rc, int cornerSize, ColourDesired fil
}
::DeleteDC(hMemDC);
} else {
- BrushColor(outline);
+ BrushColour(outline);
FrameRect(hdc, &rcw, brush);
}
}
@@ -798,7 +798,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);
}