SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 7758713f86cafc386bc180c5630e3e7a0dbacc95 parent 19cf8d26b197f2a1ffb95ff7af83e79dcd323cc0 Author: Lior Halphon <LIJI32@gmail.com> Date: Mon, 29 Apr 2024 15:51:30 +0300 Fix filtered screenshots being saved as 32-bit per channel Diffstat:
| M | Cocoa/Document.m | 6 | ------ |
1 file changed, 0 insertions(+), 6 deletions(-)
diff --git a/Cocoa/Document.m b/Cocoa/Document.m @@ -2453,12 +2453,6 @@ enum GBWindowResizeAction NSImage *ret = nil; if ([[NSUserDefaults standardUserDefaults] boolForKey:@"GBFilterScreenshots"]) { ret = [_view renderToImage]; - [ret lockFocus]; - NSBitmapImageRep *bitmapRep = [[NSBitmapImageRep alloc] initWithFocusedViewRect:NSMakeRect(0, 0, - ret.size.width, ret.size.height)]; - [ret unlockFocus]; - ret = [[NSImage alloc] initWithSize:ret.size]; - [ret addRepresentation:bitmapRep]; } if (!ret) { ret = [Document imageFromData:[NSData dataWithBytesNoCopy:_view.currentBuffer
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.