From 5afde94e3db0f9faaeb31fa7bfc4c01cf89c0afa Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Mon, 21 Dec 2015 02:01:48 +0100 Subject: [PATCH] Manipulating data directly requires to call flush and mark_dirty See documentation of cairo_image_surface_get_data. Signed-off-by: Sebastian Ramacher --- zathura/render.c | 4 ++++ 1 file changed, 4 insertions(+) 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 }