Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/gtk/engine
diff options
context:
space:
mode:
authorBenjamin Berg <benjamin@sipsolutions.net>2007-05-26 18:47:46 (GMT)
committer Benjamin Berg <benjamin@sipsolutions.net>2007-05-26 18:47:46 (GMT)
commitd2b083e802046021c122a4223715e459baec3cc3 (patch)
tree508fce306410f13df6f0375c709dec25c54142a7 /gtk/engine
parent4201a4b1d5df40e01e67e4d9d26581c7b714dd34 (diff)
Fix sugar_rounded_rectangle, it needs to start with cairo_move_to.
Diffstat (limited to 'gtk/engine')
-rw-r--r--gtk/engine/sugar-drawing.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gtk/engine/sugar-drawing.c b/gtk/engine/sugar-drawing.c
index 2316388..08cbda5 100644
--- a/gtk/engine/sugar-drawing.c
+++ b/gtk/engine/sugar-drawing.c
@@ -57,12 +57,11 @@ sugar_rounded_rectangle (cairo_t *cr,
return;
}
- /* cairo_move_to (cr, x + radius, y); */
if (corners & CORNER_TOPRIGHT) {
- cairo_line_to (cr, x + width - radius, y);
+ cairo_move_to (cr, x + width - radius, y);
cairo_arc (cr, x + width - radius, y + radius, radius, -G_PI_2, 0);
} else {
- cairo_line_to (cr, x + width, y);
+ cairo_move_to (cr, x + width, y);
}
if (corners & CORNER_BOTTOMRIGHT) {
cairo_line_to (cr, x + width, y + height - radius);