summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLGeometry.mm
diff options
context:
space:
mode:
authorJason Wray <jason@mapbox.com>2018-07-19 14:30:53 -0400
committerJason Wray <jason@mapbox.com>2018-07-24 18:14:32 -0400
commit14dc94e65fc5e549b5bdc8a9138d5d3512b469be (patch)
tree1adbad240c92731509cb2b5601cebff81e33b579 /platform/darwin/src/MGLGeometry.mm
parent08b08878d3619077438fb2728cf616fb63d414c3 (diff)
downloadqtlocation-mapboxgl-14dc94e65fc5e549b5bdc8a9138d5d3512b469be.tar.gz
[ios] Simplify and (internally) document MGLPointRounded()
`UIScreen.nativeScale` is available beginning in iOS 8, so the conditional is no longer necessary.
Diffstat (limited to 'platform/darwin/src/MGLGeometry.mm')
-rw-r--r--platform/darwin/src/MGLGeometry.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/darwin/src/MGLGeometry.mm b/platform/darwin/src/MGLGeometry.mm
index 44d1c0749b..c6fb5a5fc2 100644
--- a/platform/darwin/src/MGLGeometry.mm
+++ b/platform/darwin/src/MGLGeometry.mm
@@ -98,7 +98,7 @@ CLLocationDirection MGLDirectionBetweenCoordinates(CLLocationCoordinate2D firstC
CGPoint MGLPointRounded(CGPoint point) {
#if TARGET_OS_IPHONE || TARGET_OS_SIMULATOR
- CGFloat scaleFactor = [UIScreen instancesRespondToSelector:@selector(nativeScale)] ? [UIScreen mainScreen].nativeScale : [UIScreen mainScreen].scale;
+ CGFloat scaleFactor = [UIScreen mainScreen].nativeScale;
#elif TARGET_OS_MAC
CGFloat scaleFactor = [NSScreen mainScreen].backingScaleFactor;
#endif