tweak button text y-alignment
authorRobin Gareus <robin@gareus.org>
Mon, 8 Sep 2014 22:43:32 +0000 (00:43 +0200)
committerRobin Gareus <robin@gareus.org>
Mon, 8 Sep 2014 22:43:32 +0000 (00:43 +0200)
gtk2_ardour/ardour_button.cc

index f2d6d142e7e6f113d8e5a36f5c002d3426ad0349..84708feb2f91ee93f7690e4cffb9eb0f4c5e3115 100644 (file)
@@ -426,7 +426,7 @@ ArdourButton::render (cairo_t* cr, cairo_rectangle_t *)
                         */
                        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_show_layout (cr, _layout->gobj());
                        cairo_restore (cr);