summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Guerra <fabian.guerra@mapbox.com>2017-10-02 21:13:43 -0400
committerFabian Guerra <fabian.guerra@mapbox.com>2017-10-02 21:13:43 -0400
commit736e9d60848b1f5f11ffa1ddfbd8c052f79e2cdc (patch)
treed6054d3039b428649e21790b2dd4b1ac3a8be687
parent5e5114fdd4bb397f1aee014d363155162eacd67a (diff)
downloadqtlocation-mapboxgl-736e9d60848b1f5f11ffa1ddfbd8c052f79e2cdc.tar.gz
[ios] Fix snapshotter final image scale.
-rw-r--r--platform/darwin/src/MGLMapSnapshotter.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/darwin/src/MGLMapSnapshotter.mm b/platform/darwin/src/MGLMapSnapshotter.mm
index fd502f46f5..af4d84d773 100644
--- a/platform/darwin/src/MGLMapSnapshotter.mm
+++ b/platform/darwin/src/MGLMapSnapshotter.mm
@@ -136,7 +136,7 @@
#if TARGET_OS_IPHONE
UIImage *logoImage = [UIImage imageNamed:@"mapbox" inBundle:[NSBundle mgl_frameworkBundle] compatibleWithTraitCollection:nil];
- UIGraphicsBeginImageContextWithOptions(mglImage.size, NO, [UIScreen mainScreen].scale);
+ UIGraphicsBeginImageContextWithOptions(mglImage.size, NO, self.options.scale);
[mglImage drawInRect:CGRectMake(0, 0, mglImage.size.width, mglImage.size.height)];
[logoImage drawInRect:CGRectMake(8, mglImage.size.height - (8 + logoImage.size.height), logoImage.size.width,logoImage.size.height)];