Commit 30f57798 authored by Sebastian Ramacher's avatar Sebastian Ramacher
parent 4c1cb641
......@@ -590,8 +590,9 @@ zathura_page_widget_redraw_canvas(ZathuraPage* pageview)
static bool
surface_small_enough(cairo_surface_t* surface, size_t max_size, cairo_surface_t* old)
if (cairo_surface_get_type(surface) != CAIRO_SURFACE_TYPE_IMAGE)
if (cairo_surface_get_type(surface) != CAIRO_SURFACE_TYPE_IMAGE) {
return true;
const unsigned int width = cairo_image_surface_get_width(surface);
const unsigned int height = cairo_image_surface_get_height(surface);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment