mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
tweak button text y-alignment
This commit is contained in:
parent
ff5b658bc2
commit
78b2b0d28e
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue