Commit f89d7e20 authored by Halla Rempt's avatar Halla Rempt
Browse files

Update to the latest version of https://github.com/Algorithmus/Krita-QuickLook

parent 58b93f69
......@@ -41,9 +41,11 @@ OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview,
if (appPlist != nil || appPlist.length) {
appIcon = [[NSImage alloc] initWithData:appPlist];
NSImageRep *rep = [[appIcon representations] objectAtIndex:0];
NSSize canvasSize = appIcon.size;
NSRect renderRect = NSMakeRect(0.0, 0.0, appIcon.size.width, appIcon.size.height);
NSSize canvasSize = NSMakeSize(rep.pixelsWide, rep.pixelsHigh);
NSRect renderRect = NSMakeRect(0.0, 0.0, rep.pixelsWide, rep.pixelsHigh);
CGContextRef _context = QLPreviewRequestCreateContext(preview, canvasSize, true, NULL);
......
......@@ -73,7 +73,9 @@ OSStatus GenerateThumbnailForURL(void *thisInterface, QLThumbnailRequestRef thum
appIcon = [[NSImage alloc] initWithData:appPlist];
NSRect renderRect = NSMakeRect(0.0, 0.0, appIcon.size.width, appIcon.size.height);
NSImageRep *rep = [[appIcon representations] objectAtIndex:0];
NSRect renderRect = NSMakeRect(0.0, 0.0, rep.pixelsWide, rep.pixelsHigh);
CGImageRef cgImage = [appIcon CGImageForProposedRect:&renderRect context:NULL hints:nil];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment