summaryrefslogtreecommitdiff
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
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
-rw-r--r--macosx/Pcsxr-QL/GeneratePreviewForURL.m6
-rw-r--r--macosx/Pcsxr-QL/GenerateThumbnailForURL.m2
2 files changed, 4 insertions, 4 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);
diff --git a/macosx/Pcsxr-QL/GenerateThumbnailForURL.m b/macosx/Pcsxr-QL/GenerateThumbnailForURL.m
index 3a61afb9..077980a6 100644
--- a/macosx/Pcsxr-QL/GenerateThumbnailForURL.m
+++ b/macosx/Pcsxr-QL/GenerateThumbnailForURL.m
@@ -13,7 +13,7 @@
This function's job is to create thumbnail for designated file as fast as possible
----------------------------------------------------------------------------- */
-#define ImageDivider 16
+#define ImageDivider 32
static OSStatus GenerateThumbnailForFreeze(void *thisInterface, QLThumbnailRequestRef preview, NSURL *url, NSDictionary *options, CGSize maxSize);
static OSStatus GenerateThumbnailForMemCard(void *thisInterface, QLThumbnailRequestRef preview, NSURL *url, NSDictionary *options, CGSize maxSize);