mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 23:13:48 +01:00
CS
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
4c1cb6414d
commit
30f5779828
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user