[macos] Scale down snapshot images (#10105)
This commit is contained in:
committed by
Fabian Guerra Soto
parent
f01588cac7
commit
4bb25e8bc1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user