[murrine/border-shade-and-expander] I don't know why I had x_step-2 here, maybe to avoid drawing the last stroke



commit 1c36c51a94716a34567d21390908616cdf89f832
Author: Andrea Cimitan <andrea cimitan gmail com>
Date:   Sat Oct 31 00:42:53 2009 +0100

    I don't know why I had x_step-2 here, maybe to avoid drawing the last stroke

 src/murrine_draw.c      |    5 +++--
 src/murrine_draw_rgba.c |    2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/murrine_draw.c b/src/murrine_draw.c
index e4e4f10..0b2daff 100644
--- a/src/murrine_draw.c
+++ b/src/murrine_draw.c
@@ -657,7 +657,7 @@ murrine_draw_progressbar_fill (cairo_t *cr,
 		case 1:
 		{
 			/* Draw strokes */
-			while (tile_pos <= width+x_step-2)
+			while (tile_pos <= width+x_step)
 			{
 				cairo_move_to (cr, stroke_width/2-x_step, 0);
 				cairo_line_to (cr, stroke_width-x_step, 0);
@@ -1407,12 +1407,13 @@ murrine_draw_menuitem (cairo_t *cr,
 
 			cairo_save (cr);
 			/* Draw strokes */
-			while (tile_pos <= width+x_step-2)
+			while (tile_pos <= width+x_step)
 			{
 				cairo_move_to (cr, stroke_width/2-x_step, 0);
 				cairo_line_to (cr, stroke_width-x_step, 0);
 				cairo_line_to (cr, stroke_width/2-x_step, height);
 				cairo_line_to (cr, -x_step, height);
+
 				cairo_translate (cr, stroke_width, 0);
 				tile_pos += stroke_width;
 			}
diff --git a/src/murrine_draw_rgba.c b/src/murrine_draw_rgba.c
index 96f788e..154c1ce 100644
--- a/src/murrine_draw_rgba.c
+++ b/src/murrine_draw_rgba.c
@@ -542,7 +542,7 @@ murrine_rgba_draw_progressbar_fill (cairo_t *cr,
 			cairo_set_operator (cr, CAIRO_OPERATOR_OVER);
 
 			/* Draw strokes */
-			while (tile_pos <= width+x_step-2)
+			while (tile_pos <= width+x_step)
 			{
 				cairo_move_to (cr, stroke_width/2-x_step, 0);
 				cairo_line_to (cr, stroke_width-x_step, 0);



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