]> Git Repo - qemu.git/commitdiff
ui/cocoa: Use kCGColorSpaceSRGB
authorAkihiko Odaki <[email protected]>
Fri, 5 Mar 2021 12:13:04 +0000 (21:13 +0900)
committerGerd Hoffmann <[email protected]>
Thu, 11 Mar 2021 09:06:44 +0000 (10:06 +0100)
kCGColorSpaceGenericRGB | Apple Developer Documentation
https://developer.apple.com/documentation/coregraphics/kcgcolorspacegenericrgb
> Deprecated
> Use kCGColorSpaceSRGB instead.

This change also removes the legacy color space specification for
PowerPC.

Signed-off-by: Akihiko Odaki <[email protected]>
Message-Id: <20210305121304[email protected]>
Signed-off-by: Gerd Hoffmann <[email protected]>
ui/cocoa.m

index f27beb30e6ef3a0973f275506822b6e5760d2251..3e1a7b7d51956ee900ac155d556269e5896633d9 100644 (file)
@@ -463,13 +463,8 @@ QemuCocoaView *cocoaView;
             DIV_ROUND_UP(bitsPerPixel, 8) * 2, //bitsPerComponent
             bitsPerPixel, //bitsPerPixel
             stride, //bytesPerRow
-#ifdef __LITTLE_ENDIAN__
-            CGColorSpaceCreateWithName(kCGColorSpaceGenericRGB), //colorspace for OS X >= 10.4
-            kCGBitmapByteOrder32Little | kCGImageAlphaNoneSkipFirst,
-#else
-            CGColorSpaceCreateDeviceRGB(), //colorspace for OS X < 10.4 (actually ppc)
-            kCGImageAlphaNoneSkipFirst, //bitmapInfo
-#endif
+            CGColorSpaceCreateWithName(kCGColorSpaceSRGB), //colorspace
+            kCGBitmapByteOrder32Little | kCGImageAlphaNoneSkipFirst, //bitmapInfo
             dataProviderRef, //provider
             NULL, //decode
             0, //interpolate
This page took 0.028965 seconds and 4 git commands to generate.