[murrine] Fixed text shadow misalignment



commit ef6b6c8913687b17f32edddb0b95edc84117259a
Author: Andrea Cimitan <andrea cimitan gmail com>
Date:   Thu Sep 9 11:42:33 2010 +0200

    Fixed text shadow misalignment

 src/murrine_style.c |   22 ++++++++++------------
 1 files changed, 10 insertions(+), 12 deletions(-)
---
diff --git a/src/murrine_style.c b/src/murrine_style.c
index 9ea36c2..30af80e 100644
--- a/src/murrine_style.c
+++ b/src/murrine_style.c
@@ -2072,32 +2072,32 @@ murrine_style_draw_layout (GtkStyle     *style,
 		MurrineRGB temp;
 
 		double shade_level = murrine_style->text_shade;
-		int xos = 0;
-		int yos = 0;
+		double xos = 0;
+		double yos = 0;
 
 		switch (murrine_style->textstyle)
 		{
 			case 1:
-				yos = 1;
+				yos = +0.5;
 				break;
 			case 2:
-				yos = -1;
+				yos = -0.5;
 				break;
 			case 3:
-				xos = 1;
-				yos = 1;
+				xos = 0.5;
+				yos = 0.5;
 				break;
 			case 4:
-				xos = -1;
-				yos = -1;
+				xos = -0.5;
+				yos = -0.5;
 				break;
 		}
 
 		if (state_type == GTK_STATE_INSENSITIVE)
 		{
 			shade_level = 1.24;
-			xos = 1;
-			yos = 1;
+			xos = 0.5;
+			yos = 0.5;
 		}
 
 		if (!gtk_widget_get_has_window (widget))
@@ -2136,8 +2136,6 @@ murrine_style_draw_layout (GtkStyle     *style,
 				murrine_shade (&colors->base[state_type], shade_level, &temp);
 			else
 				murrine_shade (&colors->bg[state_type], shade_level, &temp);
-				
-			
 		}
 		else if (DETAIL ("cellrenderertext"))
 			murrine_shade (&colors->base[state_type], shade_level, &temp);



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