Do not shade alpha values.

This commit is contained in:
Carlos Garnacho 2010-10-23 18:24:14 +02:00
parent 3bfc59b9bb
commit 490d59f045
2 changed files with 1 additions and 2 deletions

View File

@ -309,7 +309,6 @@ 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 = CLAMP (shade.alpha * color->shade.factor, 0, 1);
return TRUE;
}

View File

@ -1137,7 +1137,7 @@ color_shade (const GdkRGBA *color,
color_return->red = CLAMP (color->red * factor, 0, 1);
color_return->green = CLAMP (color->green * factor, 0, 1);
color_return->blue = CLAMP (color->blue * factor, 0, 1);
color_return->alpha = CLAMP (color->alpha * factor, 0, 1);
color_return->alpha = color->alpha;
}
static void