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
commitd50a8576e70ab84af42fb0bbac56c2d74ddc1898 (patch)
tree85fc655f55e995b339aa351468d7594a0a79e5a4 /cocoa
parenta42f10de51676ccc8e8a9ce48546d633ff5a256e (diff)
downloadscintilla-mirror-d50a8576e70ab84af42fb0bbac56c2d74ddc1898.tar.gz
Backport: Feature [feature-requests:#1283]. Standardise spelling - "color" -> "colour".
Backport of changeset 7498:7dd63f4402ae.
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 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