OS X: attempt to fix the QuickLook plug-in.

git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@91264 e17a0e51-4ae3-4d35-97c3-1a29b211df97
This commit is contained in:
SND\MaddTheSane_cp 2014-08-19 21:34:08 +00:00
parent d37764cdea
commit 7fa0b5b481
3 changed files with 4 additions and 4 deletions

View File

@ -148,7 +148,7 @@ static OSStatus GeneratePreviewForMemCard(void *thisInterface, QLPreviewRequestR
NSDictionary *previewDict =
@{(NSString *)kQLPreviewPropertyAttachmentsKey: htmlDict,
(NSString *)kQLPreviewPropertyDisplayNameKey: [url lastPathComponent],
(NSString *)kQLPreviewPropertyWidthKey: @400};
(NSString *)kQLPreviewPropertyWidthKey: @600};
QLPreviewRequestSetDataRepresentation(preview, (__bridge CFDataRef)(data), kUTTypeHTML, (__bridge CFDictionaryRef)(previewDict));

View File

@ -50,9 +50,9 @@
<key>QLNeedsToBeRunInMainThread</key>
<false/>
<key>QLPreviewHeight</key>
<real>600</real>
<integer>600</integer>
<key>QLPreviewWidth</key>
<real>800</real>
<integer>600</integer>
<key>QLSupportsConcurrentRequests</key>
<false/>
<key>QLThumbnailMinimumSize</key>

View File

@ -31,7 +31,7 @@ NSString *const memoryAnimateTimerKey = @"PCSXR Memory Card Image Animate";
NSMutableArray *imagesArray = [[NSMutableArray alloc] initWithCapacity:block->IconCount];
for (int i = 0; i < block->IconCount; i++) {
NSImage *memImage;
{
@autoreleasepool {
NSBitmapImageRep *imageRep = [[NSBitmapImageRep alloc] initWithBitmapDataPlanes:NULL pixelsWide:16 pixelsHigh:16 bitsPerSample:8 samplesPerPixel:3 hasAlpha:NO isPlanar:NO colorSpaceName:NSCalibratedRGBColorSpace bytesPerRow:0 bitsPerPixel:0];
short *icon = block->Icon;