diff options
author | Fredrik Karlsson <bjorn.fredrik.karlsson@gmail.com> | 2017-10-04 20:15:30 +0200 |
---|---|---|
committer | Fabian Guerra Soto <fabian.guerra@mapbox.com> | 2017-10-04 14:15:30 -0400 |
commit | 4bb25e8bc16e433c1cd1527cc7c622af0546d0a9 (patch) | |
tree | c18b9962add952d819c17240eb6582b07b0b540a | |
parent | f01588cac78b5e5411385faa451080a74320500b (diff) | |
download | qtlocation-mapboxgl-4bb25e8bc16e433c1cd1527cc7c622af0546d0a9.tar.gz |
[macos] Scale down snapshot images (#10105)upstream/az-light
-rw-r--r-- | platform/darwin/src/MGLMapSnapshotter.mm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLMapSnapshotter.mm b/platform/darwin/src/MGLMapSnapshotter.mm index 12b932daa3..835e1995f3 100644 --- a/platform/darwin/src/MGLMapSnapshotter.mm +++ b/platform/darwin/src/MGLMapSnapshotter.mm @@ -133,6 +133,8 @@ const CGFloat MGLSnapshotterMinimumPixelSize = 64; MGLImage *mglImage = [[MGLImage alloc] initWithMGLPremultipliedImage:std::move(image) scale:self.options.scale]; #else MGLImage *mglImage = [[MGLImage alloc] initWithMGLPremultipliedImage:std::move(image)]; + mglImage.size = NSMakeSize(mglImage.size.width / self.options.scale, + mglImage.size.height / self.options.scale); #endif // Process image watermark in a work queue |