mirror of https://github.com/xemu-project/xemu.git
ui/cocoa: Use kCGColorSpaceSRGB
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 <akihiko.odaki@gmail.com> Message-Id: <20210305121304.65096-1-akihiko.odaki@gmail.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
e251b58763
commit
ae57d35cf0
|
@ -463,13 +463,8 @@ QemuCocoaView *cocoaView;
|
||||||
DIV_ROUND_UP(bitsPerPixel, 8) * 2, //bitsPerComponent
|
DIV_ROUND_UP(bitsPerPixel, 8) * 2, //bitsPerComponent
|
||||||
bitsPerPixel, //bitsPerPixel
|
bitsPerPixel, //bitsPerPixel
|
||||||
stride, //bytesPerRow
|
stride, //bytesPerRow
|
||||||
#ifdef __LITTLE_ENDIAN__
|
CGColorSpaceCreateWithName(kCGColorSpaceSRGB), //colorspace
|
||||||
CGColorSpaceCreateWithName(kCGColorSpaceGenericRGB), //colorspace for OS X >= 10.4
|
kCGBitmapByteOrder32Little | kCGImageAlphaNoneSkipFirst, //bitmapInfo
|
||||||
kCGBitmapByteOrder32Little | kCGImageAlphaNoneSkipFirst,
|
|
||||||
#else
|
|
||||||
CGColorSpaceCreateDeviceRGB(), //colorspace for OS X < 10.4 (actually ppc)
|
|
||||||
kCGImageAlphaNoneSkipFirst, //bitmapInfo
|
|
||||||
#endif
|
|
||||||
dataProviderRef, //provider
|
dataProviderRef, //provider
|
||||||
NULL, //decode
|
NULL, //decode
|
||||||
0, //interpolate
|
0, //interpolate
|
||||||
|
|
Loading…
Reference in New Issue