diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-11-02 18:36:59 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-11-02 21:12:45 -0700 |
commit | 0ee119ad763f9882dd063530081819e281402a7b (patch) | |
tree | 866ce2fe8c338aa1de50e692350506fbe6fa97eb /platform/macos | |
parent | c38e743d4573acb50f09776becdf82541065ff6a (diff) | |
download | qtlocation-mapboxgl-0ee119ad763f9882dd063530081819e281402a7b.tar.gz |
[macos] Fixed color roundtripping
Fixed an issue that caused the runtime styling API to return colors in the sRGB color space instead of the calibrated RGB color space.
Diffstat (limited to 'platform/macos')
-rw-r--r-- | platform/macos/src/NSColor+MGLAdditions.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/macos/src/NSColor+MGLAdditions.mm b/platform/macos/src/NSColor+MGLAdditions.mm index e347fd1798..2a55af5cad 100644 --- a/platform/macos/src/NSColor+MGLAdditions.mm +++ b/platform/macos/src/NSColor+MGLAdditions.mm @@ -13,7 +13,7 @@ + (NSColor *)mgl_colorWithColor:(mbgl::Color)color { - return [NSColor colorWithRed:color.r green:color.g blue:color.b alpha:color.a]; + return [NSColor colorWithCalibratedRed:color.r green:color.g blue:color.b alpha:color.a]; } - (mbgl::style::PropertyValue<mbgl::Color>)mgl_colorPropertyValue |