murrine r16 - in trunk: . src



Author: acimitan
Date: Tue Feb 26 21:15:40 2008
New Revision: 16
URL: http://svn.gnome.org/viewvc/murrine?rev=16&view=rev

Log:
2008-02-26  Andrea Cimitan  <andrea cimitan gmail com>

	* src/murrine_style.c: (murrine_style_realize):
	Fixed broken algorithm for the contrast option


Modified:
   trunk/ChangeLog
   trunk/src/murrine_style.c

Modified: trunk/src/murrine_style.c
==============================================================================
--- trunk/src/murrine_style.c	(original)
+++ trunk/src/murrine_style.c	Tue Feb 26 21:15:40 2008
@@ -1717,7 +1717,8 @@
 	/* Lighter to darker */
 	for (i = 0; i < 9; i++)
 	{
-		murrine_shade (&bg_normal, (shades[i]-0.9) * contrast + 0.9,
+		murrine_shade (&bg_normal, (shades[i] < 1.0) ?
+		               (shades[i]/contrast) : (shades[i]*contrast),
 		               &murrine_style->colors.shade[i]);
 	}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]