[vte] Bug 615417 - Reversed and one error saturation level in 0.24.0
- From: Behdad Esfahbod <behdad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] Bug 615417 - Reversed and one error saturation level in 0.24.0
- Date: Mon, 12 Apr 2010 15:44:18 +0000 (UTC)
commit fddc82dde27f0cbdbc38c617808be965b83558ac
Author: Behdad Esfahbod <behdad behdad org>
Date: Mon Apr 12 11:38:06 2010 -0400
Bug 615417 - Reversed and one error saturation level in 0.24.0
src/vtebg.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/vtebg.c b/src/vtebg.c
index fc6981a..701bd84 100644
--- a/src/vtebg.c
+++ b/src/vtebg.c
@@ -504,12 +504,12 @@ vte_bg_get_surface(VteBg *bg,
#endif
cairo_paint (cr);
- if (saturation != 1.0) {
+ if (saturation < 1.0) {
cairo_set_source_rgba (cr,
tint->red / 65535.,
tint->green / 65535.,
tint->blue / 65535.,
- saturation);
+ 1 - saturation);
cairo_set_operator (cr, CAIRO_OPERATOR_OVER);
cairo_paint (cr);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]