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:
parent
636dc37c70
commit
ac57c50938
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user