summaryrefslogtreecommitdiff
path: root/macosx/Pcsxr-QL/GeneratePreviewForURL.m
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2014-10-07 16:51:52 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2014-10-07 16:51:52 +0000
commit0abe31f6408ce246c5d972b3cbfce792c67e2c70 (patch)
tree5175f8131821beda3e3e45feca319b265b72568e /macosx/Pcsxr-QL/GeneratePreviewForURL.m
parentc73ee1b920933964373d1ea3df89251a870fca74 (diff)
downloadpcsxr-0abe31f6408ce246c5d972b3cbfce792c67e2c70.tar.gz
OS X: QuickLook: Have the thumbnail images for the memory cards changed to 32 pixels.
Minor coding style changes. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@91797 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/Pcsxr-QL/GeneratePreviewForURL.m')
-rw-r--r--macosx/Pcsxr-QL/GeneratePreviewForURL.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/macosx/Pcsxr-QL/GeneratePreviewForURL.m b/macosx/Pcsxr-QL/GeneratePreviewForURL.m
index 6238f911..e5fe49a0 100644
--- a/macosx/Pcsxr-QL/GeneratePreviewForURL.m
+++ b/macosx/Pcsxr-QL/GeneratePreviewForURL.m
@@ -103,7 +103,7 @@ static OSStatus GeneratePreviewForMemCard(void *thisInterface, QLPreviewRequestR
for (PcsxrMemoryObject *obj in memCards) {
if (!obj.hasImages || obj.memIconCount == 1) {
- NSMutableData *pngData = [NSMutableData new];
+ NSMutableData *pngData = [[NSMutableData alloc] init];
{
CGImageDestinationRef dst = CGImageDestinationCreateWithData((__bridge CFMutableDataRef)pngData, kUTTypePNG, 1, NULL);
NSImage *theImage = [obj firstMemImage];
@@ -122,12 +122,12 @@ static OSStatus GeneratePreviewForMemCard(void *thisInterface, QLPreviewRequestR
htmlDict[imgName] = imgProps;
continue;
}
- NSMutableData *gifData = [NSMutableData new];
+ NSMutableData *gifData = [[NSMutableData alloc] init];
CGImageDestinationRef dst = CGImageDestinationCreateWithData((__bridge CFMutableDataRef)gifData, kUTTypeGIF, obj.memIconCount, NULL);
for (NSImage *theImage in obj.memoryCardImages) {
CGImageRef imageRef = [theImage CGImageForProposedRect:NULL context:nil hints:nil];
- CGImageDestinationAddImage(dst, imageRef,(__bridge CFDictionaryRef)(gifPrep));
+ CGImageDestinationAddImage(dst, imageRef, (__bridge CFDictionaryRef)(gifPrep));
}
CGImageDestinationFinalize(dst);
CFRelease(dst);