From: Alan Third Date: Sun, 14 Jul 2019 16:24:56 +0000 (+0100) Subject: Use correct colorspace for XBM images X-Git-Tag: emacs-27.0.90~1912 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ac57c5093829ee09084c562bbbc1c412179be13d;p=emacs.git Use correct colorspace for XBM images * src/nsimage.m ([EmacsImage setXBMColor:]): Use 'generic RGB' color space. --- 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;