From 65936d7d7e23db33cb3824cd8ef71ef53496daa6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguye=CC=82=CC=83n?= Date: Tue, 3 Oct 2017 12:54:47 -0700 Subject: [macos] Scale down snapshot images --- platform/darwin/src/MGLMapSnapshotter.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/darwin/src/MGLMapSnapshotter.mm b/platform/darwin/src/MGLMapSnapshotter.mm index af4d84d773..c86f6f0fa7 100644 --- a/platform/darwin/src/MGLMapSnapshotter.mm +++ b/platform/darwin/src/MGLMapSnapshotter.mm @@ -128,6 +128,8 @@ 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 -- cgit v1.2.1