]> granicus.if.org Git - graphviz/commitdiff
Quartz: formats ico:quartz and icns:quartz for Mac OS X
authorGlen Low <glen.low@pixelglow.com>
Thu, 5 Dec 2013 14:43:06 +0000 (22:43 +0800)
committerGlen Low <glen.low@pixelglow.com>
Thu, 5 Dec 2013 16:22:26 +0000 (00:22 +0800)
plugin/quartz/gvdevice_quartz.c
plugin/quartz/gvplugin_quartz.c
plugin/quartz/gvplugin_quartz.h
plugin/quartz/gvrender_quartz.c

index 9c7ee40db903d7848197087071884d97cdfd7a9f..32bdc5e6dfcc6dd318a3b4b1e7f77f3ff836ec4e 100644 (file)
@@ -87,6 +87,8 @@ gvplugin_installed_t gvdevice_quartz_types_for_cairo[] = {
        {FORMAT_BMP, "bmp:cairo", 9, &quartz_engine, &device_features_quartz},
        {FORMAT_GIF, "gif:cairo", 9, &quartz_engine, &device_features_quartz},
        {FORMAT_EXR, "exr:cairo", 9, &quartz_engine, &device_features_quartz},
+       {FORMAT_ICNS, "icns:cairo", 9, &quartz_engine, &device_features_quartz},
+       {FORMAT_ICO, "ico:cairo", 9, &quartz_engine, &device_features_quartz},
        {FORMAT_JPEG, "jpe:cairo", 9, &quartz_engine, &device_features_quartz},
        {FORMAT_JPEG, "jpeg:cairo", 9, &quartz_engine, &device_features_quartz},
        {FORMAT_JPEG, "jpg:cairo", 9, &quartz_engine, &device_features_quartz},
index 947b0a7716a1f2126cf6ddc935fdad12f5bb0630..1e1fa6da6a80b563433e5e9358b216ec470bc3ba 100644 (file)
@@ -51,6 +51,10 @@ CFStringRef format_to_uti(format_type format)
                        return CFSTR("com.ilm.openexr-image");
                case FORMAT_GIF:
                        return CFSTR("com.compuserve.gif");
+               case FORMAT_ICNS:
+                       return CFSTR("com.apple.icns");
+               case FORMAT_ICO:
+                       return CFSTR("com.microsoft.ico");
                case FORMAT_JPEG:
                        return CFSTR("public.jpeg");
                case FORMAT_JPEG2000:
index 7a1aa09d6f75f8400abc1802b35f8bf7e2423293..6aa810be0d0d9cb5af21b293c75eee91f68569b8 100644 (file)
@@ -32,6 +32,8 @@ typedef enum {
        FORMAT_BMP,
        FORMAT_EXR,
        FORMAT_GIF,
+       FORMAT_ICNS,
+       FORMAT_ICO,
        FORMAT_JPEG,
        FORMAT_JPEG2000,
        FORMAT_PDF,
index cdf8c4cd1114439c0a1c7b4498da160c18a18090..2382dd1a70a7e0cb9db57191eeffa9774fde4e3a 100644 (file)
@@ -496,6 +496,8 @@ gvplugin_installed_t gvdevice_quartz_types[] = {
     {FORMAT_BMP, "bmp:quartz", 8, NULL, &device_features_quartz},
     {FORMAT_GIF, "gif:quartz", 8, NULL, &device_features_quartz},
     {FORMAT_EXR, "exr:quartz", 8, NULL, &device_features_quartz},
+    {FORMAT_ICNS, "icns:quartz", 8, NULL, &device_features_quartz},
+    {FORMAT_ICO, "ico:quartz", 8, NULL, &device_features_quartz},
     {FORMAT_JPEG, "jpe:quartz", 8, NULL, &device_features_quartz},
     {FORMAT_JPEG, "jpeg:quartz", 8, NULL, &device_features_quartz},
     {FORMAT_JPEG, "jpg:quartz", 8, NULL, &device_features_quartz},