git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit 832dc127a4c81ce1fe79bc0c44415317ea9ae295
parent c2410a4ffc41388fd71aee6d6e308ff269ce9829
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Sat, 22 Aug 2020 14:02:41 +0300

Fix Quick Look preview on Big Sur

Diffstat:
MQuickLook/generator.m3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/QuickLook/generator.m b/QuickLook/generator.m @@ -105,8 +105,9 @@ OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview, OSStatus GenerateThumbnailForURL(void *thisInterface, QLThumbnailRequestRef thumbnail, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options, CGSize maxSize) { + extern NSString *kQLThumbnailPropertyIconFlavorKey; @autoreleasepool { - CGContextRef cgContext = QLThumbnailRequestCreateContext(thumbnail, ((NSSize){1024, 1024}), true, (__bridge CFDictionaryRef)(@{@"IconFlavor" : @(0)})); + CGContextRef cgContext = QLThumbnailRequestCreateContext(thumbnail, ((NSSize){1024, 1024}), true, (__bridge CFDictionaryRef)(@{kQLThumbnailPropertyIconFlavorKey : @(0)})); if (render(cgContext, url, true) == noErr) { QLThumbnailRequestFlushContext(thumbnail, cgContext); CGContextRelease(cgContext);

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.