diff options
author | Federico Mena Quintero <federico@gnome.org> | 2019-03-12 10:19:36 -0600 |
---|---|---|
committer | Federico Mena Quintero <federico@gnome.org> | 2019-03-12 10:19:36 -0600 |
commit | 2eb12d3fbc7ba727a6af5ef0893f9822ecd2d7d3 (patch) | |
tree | 7ffe15b04bc1e55fbfbb7c491e05cce0ac55ee41 | |
parent | 2f7e9118e6636b85060bfa3d8f86ed4ff465cdef (diff) |
Don't use deprecated rsvg_set_default_dpi()
Use rsvg_handle_set_dpi() instead.
-rw-r--r-- | test/any2ppm.c | 5 | ||||
-rw-r--r-- | test/svg2png.c | 3 |
2 files changed, 2 insertions, 6 deletions
diff --git a/test/any2ppm.c b/test/any2ppm.c index a92412d08..c3c1fd006 100644 --- a/test/any2ppm.c +++ b/test/any2ppm.c @@ -436,6 +436,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, @@ -873,10 +874,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 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, |