Code

fix linking
[inkscape.git] / src / extension / internal / win32.cpp
index 335a77a09c1c18db71f14fdee6543174ecd4cfa6..74635b2a609b4e25e71f3818f3bef7c615505cda 100644 (file)
@@ -13,6 +13,7 @@
 # include "config.h"
 #endif
 
+#include <glib/gmem.h>
 #include <libnr/nr-macros.h>
 #include <libnr/nr-matrix.h>
 
@@ -312,7 +313,7 @@ PrintWin32::finish (Inkscape::Extension::Print *mod)
        width = x1 - x0;
        height = y1 - y0;
 
-       px = nr_new (unsigned char, 4 * 64 * width);
+       px = g_new (unsigned char, 4 * 64 * width);
        sheight = 64;
 
        /* Printing goes here */
@@ -343,7 +344,7 @@ PrintWin32::finish (Inkscape::Extension::Print *mod)
 
                memset (px, 0xff, 4 * num_rows * width);
                /* Render */
-               nr_arena_item_invoke_render (mod->root, &bbox, &pb, 0);
+               nr_arena_item_invoke_render (NULL, mod->root, &bbox, &pb, 0);
 
                /* Swap red and blue channels; we use RGBA, whereas
                 * the Win32 GDI uses BGRx.
@@ -368,7 +369,7 @@ PrintWin32::finish (Inkscape::Extension::Print *mod)
                nr_pixblock_release (&pb);
        }
 
-       nr_free (px);
+       g_free (px);
 
        res = EndPage (_hDC);
        res = EndDoc (_hDC);