diff --git a/zathura/render.c b/zathura/render.c index 21841e4..cd3be04 100644 --- a/zathura/render.c +++ b/zathura/render.c @@ -596,6 +596,8 @@ recolor(private_t* priv, zathura_page_t* page, unsigned int page_width, * same effect. */ + cairo_surface_flush(surface); + const int rowstride = cairo_image_surface_get_stride(surface); unsigned char* image = cairo_image_surface_get_data(surface); @@ -713,6 +715,8 @@ recolor(private_t* priv, zathura_page_t* page, unsigned int page_width, girara_list_free(rectangles); } + cairo_surface_mark_dirty(surface); + #undef rgb1 #undef rgb2 }