]> granicus.if.org Git - graphviz/commitdiff
device output should check for GDI+ usage
authorglenlow <devnull@localhost>
Tue, 7 Jul 2009 01:36:58 +0000 (01:36 +0000)
committerglenlow <devnull@localhost>
Tue, 7 Jul 2009 01:36:58 +0000 (01:36 +0000)
plugin/gdiplus/gvdevice_gdiplus.cpp

index 5ca93560bc414c4d521fac061f150cbe4dfdbe93..424a076d97ac8d10d96f05b75bae2b8f8b4cf755 100755 (executable)
@@ -36,6 +36,8 @@ using namespace Gdiplus;
 
 static void gdiplus_format(GVJ_t *job)
 {
+       UseGdiplus();
+
        /* allocate memory and attach stream to it */
        HGLOBAL buffer = GlobalAlloc(GMEM_MOVEABLE, 0);
        IStream *stream = NULL;