All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ui/cocoa: Use kCGColorSpaceSRGB
@ 2021-02-19  8:45 Akihiko Odaki
  2021-02-19 10:25 ` Peter Maydell
  0 siblings, 1 reply; 7+ messages in thread
From: Akihiko Odaki @ 2021-02-19  8:45 UTC (permalink / raw)
  Cc: Peter Maydell, qemu-devel, Akihiko Odaki, Gerd Hoffmann

kCGColorSpaceGenericRGB | Apple Developer Documentation
https://developer.apple.com/documentation/coregraphics/kcgcolorspacegenericrgb
> Deprecated
> Use kCGColorSpaceSRGB instead.

Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>
---
 ui/cocoa.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui/cocoa.m b/ui/cocoa.m
index 13fba8103e1..686fbb1b457 100644
--- a/ui/cocoa.m
+++ b/ui/cocoa.m
@@ -437,7 +437,7 @@ - (void) drawRect:(NSRect) rect
             screen.bitsPerPixel, //bitsPerPixel
             (screen.width * (screen.bitsPerComponent/2)), //bytesPerRow
 #ifdef __LITTLE_ENDIAN__
-            CGColorSpaceCreateWithName(kCGColorSpaceGenericRGB), //colorspace for OS X >= 10.4
+            CGColorSpaceCreateWithName(kCGColorSpaceSRGB), //colorspace for OS X >= 10.5
             kCGBitmapByteOrder32Little | kCGImageAlphaNoneSkipFirst,
 #else
             CGColorSpaceCreateDeviceRGB(), //colorspace for OS X < 10.4 (actually ppc)
-- 
2.24.3 (Apple Git-128)



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-02-22 10:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-19  8:45 [PATCH] ui/cocoa: Use kCGColorSpaceSRGB Akihiko Odaki
2021-02-19 10:25 ` Peter Maydell
2021-02-19 11:28   ` [PATCH v2] " Akihiko Odaki
2021-02-19 11:41     ` Peter Maydell
2021-02-19 14:11     ` Gerd Hoffmann
2021-02-20  4:29       ` [PATCH v3] " Akihiko Odaki
2021-02-22 10:36         ` Gerd Hoffmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.