[gtk+/gtk-style-context: 277/347] 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/347] GtkSymbolicColor: Initialize alpha when resolving shades.
- Date: Thu, 11 Nov 2010 01:27:48 +0000 (UTC)
commit a5307c503f52794883fdff4256c8459e8ae3654e
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]