gtk-css-engine r124 - in trunk: . libccd/ccd



Author: robsta
Date: Tue Sep 23 15:21:05 2008
New Revision: 124
URL: http://svn.gnome.org/viewvc/gtk-css-engine?rev=124&view=rev

Log:
* libccd/ccd/ccd-gtk-style.c: fix off-by-one errors when drawing
  rectangles with gaps.


Modified:
   trunk/   (props changed)
   trunk/ChangeLog
   trunk/libccd/ccd/ccd-gtk-style.c

Modified: trunk/libccd/ccd/ccd-gtk-style.c
==============================================================================
--- trunk/libccd/ccd/ccd-gtk-style.c	(original)
+++ trunk/libccd/ccd/ccd-gtk-style.c	Tue Sep 23 15:21:05 2008
@@ -121,7 +121,7 @@
 					 NULL, NULL, NULL, &bottom_left,
 					 CCD_BORDER_VISIBILITY_HIDE_BOTTOM_LEFT |
 					 CCD_BORDER_ROUNDING_UNRESTRICTED,
-					 cr, x, y + gap_start + gap_width, 
+					 cr, x, y + gap_start + gap_width - 1, 
 					 0, height - gap_start - gap_width);
 			}
 			/* Rounding reaches until start of gap? */
@@ -130,7 +130,7 @@
 					 NULL, NULL, NULL, NULL,
 					 CCD_BORDER_VISIBILITY_HIDE_LEFT_TOP |
 					 CCD_BORDER_ROUNDING_UNRESTRICTED,
-					 cr, x, y, 0, gap_start);
+					 cr, x, y, 0, gap_start + 1);
 			}
 		}
 		ccd_border_draw (&self->left, &left_top,
@@ -149,7 +149,7 @@
 					 NULL, NULL, NULL, NULL,
 					 CCD_BORDER_VISIBILITY_HIDE_LEFT_TOP |
 					 CCD_BORDER_ROUNDING_UNRESTRICTED,
-					 cr, x, y, gap_start, 0);
+					 cr, x, y, gap_start + 1, 0);
 			}
 			/* Rounding reaches until start of gap?
 			 * With Gtk+ the portion following the gap might not be visible. */
@@ -159,7 +159,7 @@
 					 NULL, NULL, NULL, NULL,
 					 CCD_BORDER_VISIBILITY_HIDE_TOP_RIGHT |
 					 CCD_BORDER_ROUNDING_UNRESTRICTED,
-					 cr, x + gap_start + gap_width, y, 
+					 cr, x + gap_start + gap_width - 1, y, 
 					 width - gap_start - gap_width, 0);
 			}
 		}
@@ -179,7 +179,7 @@
 					 &self->right, NULL, NULL, NULL,
 					 CCD_BORDER_VISIBILITY_HIDE_TOP_RIGHT |
 					 CCD_BORDER_ROUNDING_UNRESTRICTED,
-					 cr, x + width, y, 0, gap_start);
+					 cr, x + width, y, 0, gap_start + 1);
 			}
 			/* Rounding reaches until start of gap?
 			 * With Gtk+ the portion following the gap might not be visible. */
@@ -189,7 +189,7 @@
 					 &self->right, &right_bottom, NULL, NULL,
 					 CCD_BORDER_VISIBILITY_HIDE_RIGHT_BOTTOM |
 					 CCD_BORDER_ROUNDING_UNRESTRICTED,
-					 cr, x + width, y + gap_start + gap_width, 
+					 cr, x + width, y + gap_start + gap_width - 1, 
 					 0, height - gap_start - gap_width);
 			}
 		}
@@ -211,7 +211,7 @@
 					 NULL, &right_bottom, &self->bottom, NULL,
 					 CCD_BORDER_VISIBILITY_HIDE_RIGHT_BOTTOM |
 					 CCD_BORDER_ROUNDING_UNRESTRICTED,
-					 cr, x + gap_start + gap_width, y + height,
+					 cr, x + gap_start + gap_width - 1, y + height,
 					 width - gap_start - gap_width, 0);
 			}
 			/* Rounding reaches until start of gap? */
@@ -220,7 +220,7 @@
 					 NULL, NULL, &self->bottom, &bottom_left,
 					 CCD_BORDER_VISIBILITY_HIDE_BOTTOM_LEFT |
 					 CCD_BORDER_ROUNDING_UNRESTRICTED,
-					 cr, x, y + height, gap_start, 0);
+					 cr, x, y + height, gap_start + 1, 0);
 			}
 		}
 		ccd_border_draw (&self->left, &left_top,



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