tweak button text y-alignment

This commit is contained in:
Robin Gareus 2014-09-09 00:43:32 +02:00
parent ff5b658bc2
commit 78b2b0d28e

View file

@ -426,7 +426,7 @@ ArdourButton::render (cairo_t* cr, cairo_rectangle_t *)
*/ */
if (_xalign < 0) xa = ceil(.5 + (ww * fabs(_xalign) + text_margin)); if (_xalign < 0) xa = ceil(.5 + (ww * fabs(_xalign) + text_margin));
cairo_move_to (cr, xa, ya); cairo_move_to (cr, xa, floor(ya));
pango_cairo_update_layout(cr, _layout->gobj()); pango_cairo_update_layout(cr, _layout->gobj());
pango_cairo_show_layout (cr, _layout->gobj()); pango_cairo_show_layout (cr, _layout->gobj());
cairo_restore (cr); cairo_restore (cr);