mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-29 00:54:56 +01:00
Fix up color_fg alpha
Signed-off-by: Jonas Dujava <jonas.dujava@gmail.com>
This commit is contained in:
parent
fb5388c853
commit
6c548b8379
1 changed files with 2 additions and 2 deletions
|
@ -613,7 +613,7 @@ static gboolean zathura_page_widget_draw(GtkWidget* widget, cairo_t* cairo) {
|
||||||
|
|
||||||
/* draw text */
|
/* draw text */
|
||||||
const GdkRGBA color_fg = zathura->ui.colors.highlight_color_fg;
|
const GdkRGBA color_fg = zathura->ui.colors.highlight_color_fg;
|
||||||
cairo_set_source_rgba(cairo, color_fg.red, color_fg.green, color_fg.blue, color.alpha);
|
cairo_set_source_rgba(cairo, color_fg.red, color_fg.green, color_fg.blue, color_fg.alpha);
|
||||||
cairo_move_to(cairo, rectangle.x1 + 1, rectangle.y2 - 1);
|
cairo_move_to(cairo, rectangle.x1 + 1, rectangle.y2 - 1);
|
||||||
char* link_number = g_strdup_printf("%i", priv->links.offset + ++link_counter);
|
char* link_number = g_strdup_printf("%i", priv->links.offset + ++link_counter);
|
||||||
cairo_show_text(cairo, link_number);
|
cairo_show_text(cairo, link_number);
|
||||||
|
@ -674,7 +674,7 @@ static gboolean zathura_page_widget_draw(GtkWidget* widget, cairo_t* cairo) {
|
||||||
|
|
||||||
/* draw text */
|
/* draw text */
|
||||||
const GdkRGBA color_fg = zathura->ui.colors.highlight_color_fg;
|
const GdkRGBA color_fg = zathura->ui.colors.highlight_color_fg;
|
||||||
cairo_set_source_rgba(cairo, color_fg.red, color_fg.green, color_fg.blue, color.alpha);
|
cairo_set_source_rgba(cairo, color_fg.red, color_fg.green, color_fg.blue, color_fg.alpha);
|
||||||
cairo_text_extents_t extents;
|
cairo_text_extents_t extents;
|
||||||
cairo_text_extents(cairo, text, &extents);
|
cairo_text_extents(cairo, text, &extents);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue