From 0571cab0d97a2271379da4e6721e4c29d702505f Mon Sep 17 00:00:00 2001 From: Dave MacLachlan Date: Mon, 18 Mar 2019 17:06:06 -0700 Subject: [PATCH] [macos] fix up imgnode rendering --- plugin/quartz/gvloadimage_quartz.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugin/quartz/gvloadimage_quartz.c b/plugin/quartz/gvloadimage_quartz.c index 3c2cb8f65..382d9b0a1 100644 --- a/plugin/quartz/gvloadimage_quartz.c +++ b/plugin/quartz/gvloadimage_quartz.c @@ -117,10 +117,11 @@ static CGImageRef quartz_loadimage(GVJ_t * job, usershape_t *us) hint_format_type = FORMAT_NONE; break; } + CFStringRef uti_hint = format_to_uti(hint_format_type); CFDictionaryRef options = hint_format_type == FORMAT_NONE ? NULL : CFDictionaryCreate( kCFAllocatorDefault, (const void **)&kCGImageSourceTypeIdentifierHint, - (const void **)format_to_uti(hint_format_type), + (const void **)&uti_hint, 1, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks); @@ -179,4 +180,4 @@ gvplugin_installed_t gvloadimage_quartz_types[] = { {FORMAT_JPEG, "jpg:quartz", 8, &engine, NULL}, {FORMAT_PNG, "png:quartz", 8, &engine, NULL}, {0, NULL, 0, NULL, NULL} -}; \ No newline at end of file +}; -- 2.40.0