SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit e7792c16b24c08f55a370973f0beaecb7bd0ab92 parent 5e2b6e7e9ef75d35892b089866954d067429f32a Author: Lior Halphon <LIJI32@gmail.com> Date: Sat, 9 Mar 2024 21:04:54 +0200 Prevent filtered screenshots from using 64-bit color depth, as it causes some apps to misinterpret color space information Diffstat:
| M | AppleCommon/GBViewMetal.m | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/AppleCommon/GBViewMetal.m b/AppleCommon/GBViewMetal.m @@ -246,7 +246,8 @@ static const vector_float2 rect[] = { CIImage *ciImage = [CIImage imageWithMTLTexture:[[(MTKView *)self.internalView currentDrawable] texture] options:@{ - kCIImageColorSpace: (__bridge_transfer id)CGColorSpaceCreateDeviceRGB() + kCIImageColorSpace: (__bridge_transfer id)CGColorSpaceCreateDeviceRGB(), + kCIImageProperties: [NSNull null] }]; ciImage = [ciImage imageByApplyingTransform:CGAffineTransformTranslate(CGAffineTransformMakeScale(1, -1), 0, ciImage.extent.size.height)];
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.