Don't use deprecated rsvg_set_default_dpi()

Use rsvg_handle_set_dpi() instead.
parent 2d1a137f
Pipeline #23632 failed with stage
in 1 minute and 1 second
......@@ -438,6 +438,7 @@ _rsvg_render_page (const char *filename,
if (handle == NULL)
return error->message; /* XXX g_error_free */
rsvg_handle_set_dpi (handle, 72.0);
rsvg_handle_get_dimensions (handle, &dimensions);
surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32,
dimensions.width,
......@@ -875,10 +876,6 @@ main (int argc, char **argv)
#endif
#endif
#if CAIRO_CAN_TEST_SVG_SURFACE
rsvg_set_default_dpi (72.0);
#endif
#if defined(_WIN32) && !defined (__CYGWIN__)
_setmode (1, _O_BINARY);
#endif
......
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment