[gtk+] GtkSymbolicColor: Initialize alpha when resolving shades.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkSymbolicColor: Initialize alpha when resolving shades.
- Date: Sat, 4 Dec 2010 15:05:41 +0000 (UTC)
commit 4ca3b5071e577ce68ff3ceab179d187e16298578
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]