Verified Commit 781b8290 authored by Jordan Petridis's avatar Jordan Petridis 🌱

debug dimension

parent bb68856d
Pipeline #62750 failed with stages
in 11 minutes and 47 seconds
......@@ -42,6 +42,7 @@ pub struct RsvgHandle {
// Keep in sync with rsvg.h:RsvgDimensionData
pub struct RsvgDimensionData {
pub width: libc::c_int,
pub height: libc::c_int,
......@@ -890,6 +891,9 @@ pub unsafe extern "C" fn rsvg_handle_rust_render_cairo_sub(
fn get_pixbuf_sub(handle: &mut Handle, id: Option<&str>) -> Result<Pixbuf, RenderingError> {
let dimensions = handle.get_dimensions()?;
let surface = ImageSurface::create(cairo::Format::ARgb32, dimensions.width, dimensions.height)?;
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