Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[macos] Scale down snapshot images (#10105)
Browse files Browse the repository at this point in the history
  • Loading branch information
frederoni authored and fabian-guerra committed Oct 4, 2017
1 parent f01588c commit 4bb25e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions platform/darwin/src/MGLMapSnapshotter.mm
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ - (void)startWithQueue:(dispatch_queue_t)queue completionHandler:(MGLMapSnapshot
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
Expand Down

0 comments on commit 4bb25e8

Please sign in to comment.