diff options
-rw-r--r-- | cocoa/PlatCocoa.mm | 2 | ||||
-rw-r--r-- | cocoa/QuartzTextStyle.h | 4 | ||||
-rw-r--r-- | src/EditView.cxx | 2 | ||||
-rw-r--r-- | src/MarginView.cxx | 2 | ||||
-rw-r--r-- | src/ViewStyle.cxx | 8 | ||||
-rw-r--r-- | src/XPM.cxx | 6 | ||||
-rw-r--r-- | win32/PlatWin.cxx | 14 |
7 files changed, 19 insertions, 19 deletions
diff --git a/cocoa/PlatCocoa.mm b/cocoa/PlatCocoa.mm index bdda8752b..20a160d8e 100644 --- a/cocoa/PlatCocoa.mm +++ b/cocoa/PlatCocoa.mm @@ -957,7 +957,7 @@ void SurfaceImpl::DrawTextTransparent(PRectangle rc, Font &font_, XYPOSITION yba CGColorRef color = CGColorCreateGenericRGB(colour.GetRed()/255.0,colour.GetGreen()/255.0,colour.GetBlue()/255.0,1.0); QuartzTextStyle *style = TextStyleFromFont(font_); - style->setCTStyleColor(color); + style->setCTStyleColour(color); CGColorRelease(color); diff --git a/cocoa/QuartzTextStyle.h b/cocoa/QuartzTextStyle.h index 12cc0e0b2..174149495 100644 --- a/cocoa/QuartzTextStyle.h +++ b/cocoa/QuartzTextStyle.h @@ -54,9 +54,9 @@ public: return styleDict; } - void setCTStyleColor(CGColor *inColor) + void setCTStyleColour(CGColor *inColour) { - CFDictionarySetValue(styleDict, kCTForegroundColorAttributeName, inColor); + CFDictionarySetValue(styleDict, kCTForegroundColorAttributeName, inColour); } float getAscent() const diff --git a/src/EditView.cxx b/src/EditView.cxx index 7ce152489..fdcd9f287 100644 --- a/src/EditView.cxx +++ b/src/EditView.cxx @@ -1888,7 +1888,7 @@ void EditView::DrawLine(Surface *surface, const EditModel &model, const ViewStyl return; // No further drawing } - // See if something overrides the line background color. + // See if something overrides the line background colour. const ColourOptional background = vsDraw.Background(model.pdoc->GetMark(line), model.caret.active, ll->containsCaret); const Sci::Position posLineStart = model.pdoc->LineStart(line); diff --git a/src/MarginView.cxx b/src/MarginView.cxx index a2fea70a7..e6f73c52a 100644 --- a/src/MarginView.cxx +++ b/src/MarginView.cxx @@ -419,7 +419,7 @@ void MarginView::PaintMargin(Surface *surface, Sci::Line topLine, PRectangle rc, DrawStyledText(surface, vs, vs.marginStyleOffset, rcMarker, stMargin, 0, stMargin.length, drawAll); } else { - // if we're displaying annotation lines, color the margin to match the associated document line + // if we're displaying annotation lines, colour the margin to match the associated document line const int annotationLines = model.pdoc->AnnotationLines(lineDoc); if (annotationLines && (visibleLine > lastVisibleLine - annotationLines)) { surface->FillRectangle(rcMarker, vs.styles[stMargin.StyleAt(0) + vs.marginStyleOffset].back); diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx index a4535abca..d6fd42a6d 100644 --- a/src/ViewStyle.cxx +++ b/src/ViewStyle.cxx @@ -440,12 +440,12 @@ bool ViewStyle::IsLineFrameOpaque(bool caretActive, bool lineContainsCaret) cons (caretLineAlpha == SC_ALPHA_NOALPHA) && lineContainsCaret; } -// See if something overrides the line background color: Either if caret is on the line -// and background color is set for that, or if a marker is defined that forces its background -// color onto the line, or if a marker is defined but has no selection margin in which to +// See if something overrides the line background colour: Either if caret is on the line +// and background colour is set for that, or if a marker is defined that forces its background +// colour onto the line, or if a marker is defined but has no selection margin in which to // display itself (as long as it's not an SC_MARK_EMPTY marker). These are checked in order // with the earlier taking precedence. When multiple markers cause background override, -// the color for the highest numbered one is used. +// the colour for the highest numbered one is used. ColourOptional ViewStyle::Background(int marksOfLine, bool caretActive, bool lineContainsCaret) const { ColourOptional background; if (!caretLineFrame && (caretActive || alwaysShowCaretLineBackground) && showCaretLineBackground && diff --git a/src/XPM.cxx b/src/XPM.cxx index 6de9ce98b..f2565bf83 100644 --- a/src/XPM.cxx +++ b/src/XPM.cxx @@ -193,7 +193,7 @@ std::vector<const char *> XPM::LinesFormFromTextForm(const char *textForm) { for (; countQuotes < (2*strings) && textForm[j] != '\0'; j++) { if (textForm[j] == '\"') { if (countQuotes == 0) { - // First field: width, height, number of colors, chars per pixel + // First field: width, height, number of colours, chars per pixel const char *line0 = textForm + j + 1; // Skip width line0 = NextField(line0); @@ -204,7 +204,7 @@ std::vector<const char *> XPM::LinesFormFromTextForm(const char *textForm) { strings += atoi(line0); } if (countQuotes / 2 >= strings) { - break; // Bad height or number of colors! + break; // Bad height or number of colours! } if ((countQuotes & 1) == 0) { linesForm.push_back(textForm + j + 1); @@ -213,7 +213,7 @@ std::vector<const char *> XPM::LinesFormFromTextForm(const char *textForm) { } } if (textForm[j] == '\0' || countQuotes / 2 > strings) { - // Malformed XPM! Height + number of colors too high or too low + // Malformed XPM! Height + number of colours too high or too low linesForm.clear(); } return linesForm; 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<POINT> outline; for (size_t i=0; i<npts; i++) { POINT pt = {static_cast<LONG>(pts[i].x), static_cast<LONG>(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); } |