Commit 9ed64ff6 authored by Abdó Roig-Maranges's avatar Abdó Roig-Maranges Committed by Sebastian Ramacher

Solved blinking bug when recoloring with grey background

There was a problem passing colors to cairo_set_source_rgb.
Should be floats between 0 and 1.
Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
parent 1175985a
......@@ -434,9 +434,9 @@ zathura_page_widget_draw(GtkWidget* widget, cairo_t* cairo)
/* set background color */
if (priv->zathura->global.recolor == true) {
GdkColor color = priv->zathura->ui.colors.recolor_light_color;
cairo_set_source_rgb(cairo, color.red, color.green, color.blue);
cairo_set_source_rgb(cairo, color.red/65535.0, color.green/65535.0, color.blue/65535.0);
} else {
cairo_set_source_rgb(cairo, 255, 255, 255);
cairo_set_source_rgb(cairo, 1, 1, 1);
}
cairo_rectangle(cairo, 0, 0, page_width, page_height);
cairo_fill(cairo);
......
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