mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 14:56:00 +01:00
CS
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
4c1cb6414d
commit
30f5779828
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue