diff options
Diffstat (limited to 'test/svg2png.c')
-rw-r--r-- | test/svg2png.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/svg2png.c b/test/svg2png.c index 24bdbfa91..52f52d08f 100644 --- a/test/svg2png.c +++ b/test/svg2png.c @@ -52,12 +52,11 @@ int main (int argc, char *argv[]) error = NULL; - rsvg_set_default_dpi (72.0); - handle = rsvg_handle_new_from_file (filename, &error); if (!handle) FAIL (error->message); + rsvg_handle_set_dpi (handle, 72.0); rsvg_handle_get_dimensions (handle, &dimensions); surface = cairo_image_surface_create (CAIRO_FORMAT_RGB24, |