index 335a77a09c1c18db71f14fdee6543174ecd4cfa6..74635b2a609b4e25e71f3818f3bef7c615505cda 100644 (file)
# include "config.h"
#endif
+#include <glib/gmem.h>
#include <libnr/nr-macros.h>
#include <libnr/nr-matrix.h>
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 */
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.
nr_pixblock_release (&pb);
}
- nr_free (px);
+ g_free (px);
res = EndPage (_hDC);
res = EndDoc (_hDC);