aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa
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 /cocoa
parent796d60abaa071e4baa4f047249cb8955071478b0 (diff)
downloadscintilla-mirror-dbb3dbe28d22720639967832cef6f6e8163d472a.tar.gz
Feature [feature-requests:#1283]. Standardise spelling - "color" -> "colour".
Diffstat (limited to 'cocoa')
-rw-r--r--cocoa/PlatCocoa.mm2
-rw-r--r--cocoa/QuartzTextStyle.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/cocoa/PlatCocoa.mm b/cocoa/PlatCocoa.mm
index 2b41f476d..9b73b3dcf 100644
--- a/cocoa/PlatCocoa.mm
+++ b/cocoa/PlatCocoa.mm
@@ -1116,7 +1116,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 8572f5270..57ea6c7a3 100644
--- a/cocoa/QuartzTextStyle.h
+++ b/cocoa/QuartzTextStyle.h
@@ -47,8 +47,8 @@ public:
return styleDict;
}
- void setCTStyleColor(CGColor *inColor) {
- CFDictionarySetValue(styleDict, kCTForegroundColorAttributeName, inColor);
+ void setCTStyleColour(CGColor *inColour) {
+ CFDictionarySetValue(styleDict, kCTForegroundColorAttributeName, inColour);
}
float getAscent() const {