aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/PlatCocoa.mm
diff options
context:
space:
mode:
Diffstat (limited to 'cocoa/PlatCocoa.mm')
-rw-r--r--cocoa/PlatCocoa.mm14
1 files changed, 14 insertions, 0 deletions
diff --git a/cocoa/PlatCocoa.mm b/cocoa/PlatCocoa.mm
index 2f8778d11..33c24397f 100644
--- a/cocoa/PlatCocoa.mm
+++ b/cocoa/PlatCocoa.mm
@@ -319,6 +319,10 @@ void GetPositions(CTLineRef line, std::vector<CGFloat> &positions) {
positions.begin(), std::plus<CGFloat>());
}
+const int SupportsCocoa[] = {
+ SC_SUPPORTS_LINE_DRAWS_FINAL,
+};
+
}
//----------------- SurfaceImpl --------------------------------------------------------------------
@@ -452,6 +456,16 @@ void SurfaceImpl::InitPixMap(int width, int height, Surface *surface_, WindowID
//--------------------------------------------------------------------------------------------------
+int SurfaceImpl::Supports(int feature) noexcept {
+ for (const int f : SupportsCocoa) {
+ if (f == feature)
+ return 1;
+ }
+ return 0;
+}
+
+//--------------------------------------------------------------------------------------------------
+
void SurfaceImpl::PenColour(ColourDesired fore) {
if (gc) {
ColourDesired colour(fore.AsInteger());