diff --git a/macosx/Pcsxr-QL/GeneratePreviewForURL.m b/macosx/Pcsxr-QL/GeneratePreviewForURL.m index ae58b002..e81492f0 100644 --- a/macosx/Pcsxr-QL/GeneratePreviewForURL.m +++ b/macosx/Pcsxr-QL/GeneratePreviewForURL.m @@ -104,15 +104,16 @@ static OSStatus GeneratePreviewForMemCard(void *thisInterface, QLPreviewRequestR for (PcsxrMemoryObject *obj in memCards) { if (obj.memImageIndex == -1 || obj.memIconCount == 1) { NSMutableData *pngData = [NSMutableData new]; - CGImageDestinationRef dst = CGImageDestinationCreateWithData((__bridge CFMutableDataRef)pngData, kUTTypePNG, 1, NULL); - NSImage *theImage = [obj firstMemImage]; - NSRect smallRect = NSMakeRect(0, 0, 16, 16); - - CGImageRef imageRef = [theImage CGImageForProposedRect:&smallRect context:nil hints:nil]; - CGImageDestinationAddImage(dst, imageRef, NULL); - - CGImageDestinationFinalize(dst); - CFRelease(dst); + { + CGImageDestinationRef dst = CGImageDestinationCreateWithData((__bridge CFMutableDataRef)pngData, kUTTypePNG, 1, NULL); + NSImage *theImage = [obj firstMemImage]; + + CGImageRef imageRef = [theImage CGImageForProposedRect:NULL context:nil hints:nil]; + CGImageDestinationAddImage(dst, imageRef, NULL); + + CGImageDestinationFinalize(dst); + CFRelease(dst); + } NSDictionary *imgProps = @{(NSString *)kQLPreviewPropertyAttachmentDataKey: pngData, (NSString *)kQLPreviewPropertyMIMETypeKey: @"image/png"}; diff --git a/macosx/Source/PcsxrMemoryObject.m b/macosx/Source/PcsxrMemoryObject.m index 53a37b36..64ac1e10 100644 --- a/macosx/Source/PcsxrMemoryObject.m +++ b/macosx/Source/PcsxrMemoryObject.m @@ -112,7 +112,7 @@ static NSString *MemLabelEndLink; { static NSImage *imageBlank = nil; if (imageBlank == nil) { - NSRect imageRect = NSMakeRect(0, 0, 32, 32); + NSRect imageRect = NSMakeRect(0, 0, 16, 16); imageBlank = [[NSImage alloc] initWithSize:imageRect.size]; [imageBlank lockFocus]; [[NSColor blackColor] set];