X-Git-Url: https://git.cworth.org/git?p=scherzo;a=blobdiff_plain;f=scherzo.c;h=ae8ea3284760ba900b6dfdb07f8ba72a2c01fd4b;hp=f6669edc3fda5194149cd72d88883c963b5cc076;hb=82d0481012c66ad272598b337e062310f3adc174;hpb=e8131140bc963d8f19e4d8691a6b9447bff94534 diff --git a/scherzo.c b/scherzo.c index f6669ed..ae8ea32 100644 --- a/scherzo.c +++ b/scherzo.c @@ -62,8 +62,8 @@ on_expose_event_draw (GtkWidget *widget, cairo_set_source_rgb (cr, 1.0, 1.0, 1.0); cairo_paint (cr); - /* Add some padding on the left/right */ - cairo_translate (cr, pad, pad); + /* Add some padding on the sides and top */ + cairo_translate (cr, pad, (int) scherzo->staff_height / 2); score_set_staff_height (score, scherzo->staff_height); score_set_width (score, widget_width - 2 * pad);