mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 08:16:00 +01:00
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:
parent
f16e93d6c0
commit
5afde94e3d
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue