Fix filtered screenshots being saved as 32-bit per channel

This commit is contained in:
Lior Halphon 2024-04-29 15:51:30 +03:00
parent 19cf8d26b1
commit 7758713f86
1 changed files with 0 additions and 6 deletions

View File

@ -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