Manipulating data directly requires to call flush and mark_dirty

See documentation of cairo_image_surface_get_data.

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
Sebastian Ramacher 2015-12-21 02:01:48 +01:00
parent f16e93d6c0
commit 5afde94e3d

View File

@ -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
}