mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-09-02 08:42:59 +02:00
Fix filtered screenshots being saved as 32-bit per channel
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user