remove offset from icons when button is pushed

This commit is contained in:
Ben Loftis
2014-08-28 14:29:49 -05:00
parent 7306568634
commit a4bda23bba

View File

@@ -285,15 +285,9 @@ ArdourButton::render (cairo_t* cr, cairo_rectangle_t *)
cairo_translate (cr, -8,0 );
}
if (_grabbed) {
cairo_rectangle (cr, x+1, y+1, _pixbuf->get_width(), _pixbuf->get_height());
gdk_cairo_set_source_pixbuf (cr, _pixbuf->gobj(), x+1, y+1);
cairo_fill (cr);
} else {
cairo_rectangle (cr, x, y, _pixbuf->get_width(), _pixbuf->get_height());
gdk_cairo_set_source_pixbuf (cr, _pixbuf->gobj(), x, y);
cairo_fill (cr);
}
cairo_rectangle (cr, x, y, _pixbuf->get_width(), _pixbuf->get_height());
gdk_cairo_set_source_pixbuf (cr, _pixbuf->gobj(), x, y);
cairo_fill (cr);
//..and then return to our previous drawing position
if (((_elements & Menu)==Menu)) {