Commit 5afde94e authored by Sebastian Ramacher's avatar Sebastian Ramacher

Manipulating data directly requires to call flush and mark_dirty

See documentation of cairo_image_surface_get_data.
Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
parent f16e93d6
Pipeline #80 skipped
......@@ -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
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment