[gtk+/gtk-style-context: 322/490] GtkSymbolicColor: Do not clamp shade/mix/alpha factors.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-style-context: 322/490] GtkSymbolicColor: Do not clamp shade/mix/alpha factors.
- Date: Wed, 24 Nov 2010 14:06:45 +0000 (UTC)
commit 440d099ebf1ccff8407634aabe76e571f83d2fce
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Nov 6 12:33:52 2010 +0100
GtkSymbolicColor: Do not clamp shade/mix/alpha factors.
gtk/gtksymboliccolor.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtksymboliccolor.c b/gtk/gtksymboliccolor.c
index 1873d19..35d944b 100644
--- a/gtk/gtksymboliccolor.c
+++ b/gtk/gtksymboliccolor.c
@@ -160,7 +160,7 @@ gtk_symbolic_color_new_shade (GtkSymbolicColor *color,
symbolic_color = g_slice_new0 (GtkSymbolicColor);
symbolic_color->type = COLOR_TYPE_SHADE;
symbolic_color->shade.color = gtk_symbolic_color_ref (color);
- symbolic_color->shade.factor = CLAMP (factor, 0, 1);
+ symbolic_color->shade.factor = factor;
symbolic_color->ref_count = 1;
return symbolic_color;
@@ -191,7 +191,7 @@ gtk_symbolic_color_new_alpha (GtkSymbolicColor *color,
symbolic_color = g_slice_new0 (GtkSymbolicColor);
symbolic_color->type = COLOR_TYPE_ALPHA;
symbolic_color->alpha.color = gtk_symbolic_color_ref (color);
- symbolic_color->alpha.factor = CLAMP (factor, 0, 1);
+ symbolic_color->alpha.factor = factor;
symbolic_color->ref_count = 1;
return symbolic_color;
@@ -225,7 +225,7 @@ gtk_symbolic_color_new_mix (GtkSymbolicColor *color1,
symbolic_color->type = COLOR_TYPE_MIX;
symbolic_color->mix.color1 = gtk_symbolic_color_ref (color1);
symbolic_color->mix.color2 = gtk_symbolic_color_ref (color2);
- symbolic_color->mix.factor = CLAMP (factor, 0, 1);
+ symbolic_color->mix.factor = factor;
symbolic_color->ref_count = 1;
return symbolic_color;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]