[gtk+/wip/matthiasc/icon-texture-cache] iconhelper: Fix symbolic recoloring colormatrix
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/matthiasc/icon-texture-cache] iconhelper: Fix symbolic recoloring colormatrix
- Date: Mon, 23 Oct 2017 09:05:00 +0000 (UTC)
commit b6c6513d159db1db040fcba3ea140c5f01555404
Author: Timm Bäder <mail baedert org>
Date: Mon Oct 23 11:07:35 2017 +0200
iconhelper: Fix symbolic recoloring colormatrix
This fixes it for the cairo renderer, which might be correct or not. It
also makes icon shadows worse.
gtk/gtkiconhelper.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkiconhelper.c b/gtk/gtkiconhelper.c
index e7aea5d..001502d 100644
--- a/gtk/gtkiconhelper.c
+++ b/gtk/gtkiconhelper.c
@@ -803,9 +803,9 @@ gtk_icon_helper_snapshot (GtkIconHelper *self,
gtk_icon_theme_lookup_symbolic_colors (style, &fg, &sc, &wc, &ec);
- graphene_vec4_init (&r0, sc.red - fg.red, wc.red - fg.red, ec.red - fg.red, 0);
- graphene_vec4_init (&r1, sc.green - fg.green, wc.green - fg.green, ec.green - fg.green, 0);
- graphene_vec4_init (&r2, sc.blue - fg.blue, wc.blue - fg.blue, ec.blue - fg.blue, 0);
+ graphene_vec4_init (&r0, sc.red - fg.red, sc.green - fg.green, sc.blue - fg.blue, 0);
+ graphene_vec4_init (&r1, wc.red - fg.red, wc.green - fg.green, wc.blue - fg.blue, 0);
+ graphene_vec4_init (&r2, ec.red - fg.red, ec.green - fg.green, ec.blue - fg.blue, 0);
graphene_vec4_init (&r3, 0, 0, 0, fg.alpha);
graphene_vec4_init (&offset, fg.red, fg.green, fg.blue, 0);
graphene_matrix_init_from_vec4 (&matrix, &r0, &r1, &r2, &r3);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]