]> git.cworth.org Git - scherzo/blobdiff - scherzo.c
Make the brace and clef symbols scale with the staff.
[scherzo] / scherzo.c
index f6669edc3fda5194149cd72d88883c963b5cc076..ae8ea3284760ba900b6dfdb07f8ba72a2c01fd4b 100644 (file)
--- 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);