cssvalue: Make shade() work properly again

In a previous commit, I accidentally scaled the hue instead of the
saturation. Ooops.
This commit is contained in:
Benjamin Otte 2012-11-09 20:30:48 +01:00
parent 10c3a66e40
commit aae2bf91cb
2 changed files with 4 additions and 4 deletions

View File

@ -189,8 +189,8 @@ gtk_css_color_value_resolve_full (GtkCssValue *color,
hsla.lightness *= color->sym_col.shade.factor;
hsla.lightness = CLAMP (hsla.lightness, 0.0, 1.0);
hsla.hue *= color->sym_col.shade.factor;
hsla.hue = CLAMP (hsla.hue, 0.0, 1.0);
hsla.saturation *= color->sym_col.shade.factor;
hsla.saturation = CLAMP (hsla.saturation, 0.0, 1.0);
_gdk_rgba_init_from_hsla (&shade, &hsla);

View File

@ -521,8 +521,8 @@ _shade_color (GdkRGBA *color,
hsla.lightness *= factor;
hsla.lightness = CLAMP (hsla.lightness, 0.0, 1.0);
hsla.hue *= factor;
hsla.hue = CLAMP (hsla.hue, 0.0, 1.0);
hsla.saturation *= factor;
hsla.saturation = CLAMP (hsla.saturation, 0.0, 1.0);
_gdk_rgba_init_from_hsla (color, &hsla);
}