1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-07 15:21:46 +00:00

Use correct colorspace for XBM images

* src/nsimage.m ([EmacsImage setXBMColor:]): Use 'generic RGB' color
space.
This commit is contained in:
Alan Third 2019-07-14 17:24:56 +01:00
parent 636dc37c70
commit ac57c50938

View File

@ -309,8 +309,8 @@ - (instancetype)setXBMColor: (NSColor *)color
if (bmRep == nil || color == nil)
return self;
if ([color colorSpace] != [NSColorSpace deviceRGBColorSpace])
rgbColor = [color colorUsingColorSpace:[NSColorSpace deviceRGBColorSpace]];
if ([color colorSpace] != [NSColorSpace genericRGBColorSpace])
rgbColor = [color colorUsingColorSpace:[NSColorSpace genericRGBColorSpace]];
else
rgbColor = color;