From 759e29705c38cc58880dc892da2c28e8a84c2fac Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Sun, 16 Nov 2014 21:05:39 +0000 Subject: OS X: Re-work PcsxrMemoryObject to make the properties more readable. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@92297 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- macosx/Pcsxr-QL/GeneratePreviewForURL.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'macosx/Pcsxr-QL/GeneratePreviewForURL.m') diff --git a/macosx/Pcsxr-QL/GeneratePreviewForURL.m b/macosx/Pcsxr-QL/GeneratePreviewForURL.m index e5fe49a0..7076b380 100644 --- a/macosx/Pcsxr-QL/GeneratePreviewForURL.m +++ b/macosx/Pcsxr-QL/GeneratePreviewForURL.m @@ -102,11 +102,11 @@ static OSStatus GeneratePreviewForMemCard(void *thisInterface, QLPreviewRequestR NSDictionary *gifPrep = @{(NSString *) kCGImagePropertyGIFDictionary: @{(NSString *) kCGImagePropertyGIFDelayTime: @0.30f}}; for (PcsxrMemoryObject *obj in memCards) { - if (!obj.hasImages || obj.memIconCount == 1) { + if (!obj.hasImages || obj.iconCount == 1) { NSMutableData *pngData = [[NSMutableData alloc] init]; { CGImageDestinationRef dst = CGImageDestinationCreateWithData((__bridge CFMutableDataRef)pngData, kUTTypePNG, 1, NULL); - NSImage *theImage = [obj firstMemImage]; + NSImage *theImage = [obj firstImage]; CGImageRef imageRef = [theImage CGImageForProposedRect:NULL context:nil hints:nil]; CGImageDestinationAddImage(dst, imageRef, NULL); @@ -124,8 +124,8 @@ static OSStatus GeneratePreviewForMemCard(void *thisInterface, QLPreviewRequestR } NSMutableData *gifData = [[NSMutableData alloc] init]; - CGImageDestinationRef dst = CGImageDestinationCreateWithData((__bridge CFMutableDataRef)gifData, kUTTypeGIF, obj.memIconCount, NULL); - for (NSImage *theImage in obj.memoryCardImages) { + CGImageDestinationRef dst = CGImageDestinationCreateWithData((__bridge CFMutableDataRef)gifData, kUTTypeGIF, obj.iconCount, NULL); + for (NSImage *theImage in obj.imageArray) { CGImageRef imageRef = [theImage CGImageForProposedRect:NULL context:nil hints:nil]; CGImageDestinationAddImage(dst, imageRef, (__bridge CFDictionaryRef)(gifPrep)); } -- cgit v1.2.3