summaryrefslogtreecommitdiff
path: root/widget
diff options
context:
space:
mode:
authorBrian Smith <brian@dbsoft.org>2022-06-02 15:56:05 -0500
committerBrian Smith <brian@dbsoft.org>2022-06-02 15:56:05 -0500
commit43dfe703daeed9661800f666be78ca33e3a6d01d (patch)
treed6059bca7ee4116540d30d1a9ff9429dcb3021ef /widget
parent5e28396116a3a7817c6dbb6e52a7a2bb30f5a92a (diff)
downloaduxp-43dfe703daeed9661800f666be78ca33e3a6d01d.tar.gz
Issue #1905 - Part 2a - Build system fixes to allow use of SDK versioned 11.0 and higher.
Also don't include code incompatible with SDK 10.15 and higher, when building with such a SDK.
Diffstat (limited to 'widget')
-rw-r--r--widget/cocoa/nsChildView.mm3
1 files changed, 3 insertions, 0 deletions
diff --git a/widget/cocoa/nsChildView.mm b/widget/cocoa/nsChildView.mm
index 868687fe16..e2aa6729e9 100644
--- a/widget/cocoa/nsChildView.mm
+++ b/widget/cocoa/nsChildView.mm
@@ -209,6 +209,8 @@ uint32_t nsChildView::sLastInputEventCount = 0;
+ (BOOL)_shouldZoomOnDoubleClick; // present on 10.7 and above
@end
+// This is only possible with SDKs below 10.15
+#ifndef MAC_OS_X_VERSION_10_15
// Starting with 10.7 the bottom corners of all windows are rounded.
// Unfortunately, the standard rounding that OS X applies to OpenGL views
// does not use anti-aliasing and looks very crude. Since we want a smooth,
@@ -226,6 +228,7 @@ uint32_t nsChildView::sLastInputEventCount = 0;
return region;
}
@end
+#endif
#pragma mark -