summaryrefslogtreecommitdiff
path: root/platform/macos/src/NSImage+MGLAdditions.mm
diff options
context:
space:
mode:
authorAndrew Kitchen <andrew.kitchen@mapbox.com>2017-11-22 17:07:53 -0800
committerAndrew Kitchen <andrew.kitchen@mapbox.com>2017-11-27 13:24:31 -0800
commitdf8b2e34a8d224c67bc261d007e502c577d94330 (patch)
tree78fd35910fca5ded0ebedcc11e224931792498c7 /platform/macos/src/NSImage+MGLAdditions.mm
parentd8bcc943c50b1030f8b090d28b023ff7c40afd9c (diff)
downloadqtlocation-mapboxgl-df8b2e34a8d224c67bc261d007e502c577d94330.tar.gz
[darwin, macos, ios] Renames CGImage creation function to imply +1 retain countupstream/akitchen-8570
Diffstat (limited to 'platform/macos/src/NSImage+MGLAdditions.mm')
-rw-r--r--platform/macos/src/NSImage+MGLAdditions.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/macos/src/NSImage+MGLAdditions.mm b/platform/macos/src/NSImage+MGLAdditions.mm
index 7500a8a207..2666dfe790 100644
--- a/platform/macos/src/NSImage+MGLAdditions.mm
+++ b/platform/macos/src/NSImage+MGLAdditions.mm
@@ -5,7 +5,7 @@
@implementation NSImage (MGLAdditions)
- (nullable instancetype)initWithMGLPremultipliedImage:(mbgl::PremultipliedImage&&)src {
- CGImageRef image = CGImageFromMGLPremultipliedImage(std::move(src));
+ CGImageRef image = CGImageCreateWithMGLPremultipliedImage(std::move(src));
if (!image) {
return nil;
}
@@ -16,7 +16,7 @@
}
- (nullable instancetype)initWithMGLStyleImage:(const mbgl::style::Image *)styleImage {
- CGImageRef image = CGImageFromMGLPremultipliedImage(styleImage->getImage().clone());
+ CGImageRef image = CGImageCreateWithMGLPremultipliedImage(styleImage->getImage().clone());
if (!image) {
return nil;
}