diff options
author | Andrew Kitchen <andrew.kitchen@mapbox.com> | 2017-11-22 17:07:53 -0800 |
---|---|---|
committer | Andrew Kitchen <andrew.kitchen@mapbox.com> | 2017-11-27 13:24:31 -0800 |
commit | df8b2e34a8d224c67bc261d007e502c577d94330 (patch) | |
tree | 78fd35910fca5ded0ebedcc11e224931792498c7 /platform/macos/src/NSImage+MGLAdditions.mm | |
parent | d8bcc943c50b1030f8b090d28b023ff7c40afd9c (diff) | |
download | qtlocation-mapboxgl-upstream/akitchen-8570.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.mm | 4 |
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; } |