From ac57c5093829ee09084c562bbbc1c412179be13d Mon Sep 17 00:00:00 2001 From: Alan Third Date: Sun, 14 Jul 2019 17:24:56 +0100 Subject: [PATCH] Use correct colorspace for XBM images * src/nsimage.m ([EmacsImage setXBMColor:]): Use 'generic RGB' color space. --- src/nsimage.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nsimage.m b/src/nsimage.m index 6f0340302ca..e1408c77f58 100644 --- a/src/nsimage.m +++ b/src/nsimage.m @@ -309,8 +309,8 @@ ns_set_alpha (void *img, int x, int y, unsigned char a) 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; -- 2.39.2