[gtk+/gtk-style-context: 277/540] GtkSymbolicColor: Initialize alpha when resolving shades.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-style-context: 277/540] GtkSymbolicColor: Initialize alpha when resolving shades.
- Date: Fri, 3 Dec 2010 02:59:25 +0000 (UTC)
commit eb5864ec1261b034a69bb9796eb4d3c10f35219d
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Oct 23 21:40:20 2010 +0200
GtkSymbolicColor: Initialize alpha when resolving shades.
gtk/gtksymboliccolor.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtksymboliccolor.c b/gtk/gtksymboliccolor.c
index 2fa3d18..92d3eff 100644
--- a/gtk/gtksymboliccolor.c
+++ b/gtk/gtksymboliccolor.c
@@ -309,6 +309,7 @@ gtk_symbolic_color_resolve (GtkSymbolicColor *color,
resolved_color->red = CLAMP (shade.red * color->shade.factor, 0, 1);
resolved_color->green = CLAMP (shade.green * color->shade.factor, 0, 1);
resolved_color->blue = CLAMP (shade.blue * color->shade.factor, 0, 1);
+ resolved_color->alpha = shade.alpha;
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]