diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2006-12-04 20:23:35 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2006-12-04 20:23:35 +0000 |
commit | ea0ec593e49735b1c7157c73d24ac58423adafc0 (patch) | |
tree | f269ec03066056508f6bebc1537fc3cf911ef7bb /pango | |
parent | 534267ee360b18a4999ee3b1af3dfa0c193f3cd9 (diff) | |
download | pango-ea0ec593e49735b1c7157c73d24ac58423adafc0.tar.gz |
Improve upon last change. Suggested by Carl Worth: use cairo_rectangle(x +
2006-12-04 Behdad Esfahbod <behdad@gnome.org>
* pango/pangocairo-render.c (_pango_cairo_renderer_draw_frame):
Improve upon last change. Suggested by Carl Worth: use
cairo_rectangle(x + width, y, -width, height) to do a rectangle with
the other orientation.
Diffstat (limited to 'pango')
-rw-r--r-- | pango/pangocairo-render.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/pango/pangocairo-render.c b/pango/pangocairo-render.c index da145400..642b6a5d 100644 --- a/pango/pangocairo-render.c +++ b/pango/pangocairo-render.c @@ -79,18 +79,9 @@ _pango_cairo_renderer_draw_frame (PangoCairoRenderer *crenderer, */ /* outer */ - cairo_move_to (cr, x - d2, y - d2); - cairo_rel_line_to (cr, width + d, 0); - cairo_rel_line_to (cr, 0, height + d); - cairo_rel_line_to (cr, - (width + d), 0); - cairo_close_path (cr); - + cairo_rectangle (crenderer->cr, x-d2, y-d2, width+d, height+d); /* inner */ - cairo_move_to (cr, x + d2, y + d2); - cairo_rel_line_to (cr, 0, height - d); - cairo_rel_line_to (cr, width - d, 0); - cairo_rel_line_to (cr, 0, - (height - d)); - cairo_close_path (cr); + cairo_rectangle (crenderer->cr, x+d2 + (width-d), y+d2, - (width-d), height-d); } else { |