]> git.donarmstrong.com Git - lilypond.git/blobdiff - mf/feta-macros.mf
font: clean up staffline-display in testing mode
[lilypond.git] / mf / feta-macros.mf
index 9d8d697108d74f847bdcd5d98a7be5105a425221..9a695225fb6d05b49d8ec8909c57af173550383b 100644 (file)
@@ -21,6 +21,8 @@
 % debugging
 %
 
+input debugging-settings.mf
+
 def print_penpos (suffix $) =
        message
          "z" & str$ & "l = (" & decimal x.$.l & ", " &decimal y.$.l & ");"
@@ -50,15 +52,15 @@ def treq =
 enddef;
 
 
-def draw_staff_if_debugging (expr first, last, offset) =
+def draw_staff_if_debugging (expr first, last) =
        if test <> 0:
                pickup pencircle scaled stafflinethickness;
 
                for i := first step 1 until last:
                        draw (-staff_space,
-                             (i + offset) * staff_space_rounded)
+                             (i + stafflines_y_offset) * staff_space_rounded)
                             -- (4 staff_space,
-                                (i + offset) * staff_space_rounded);
+                                (i + stafflines_y_offset) * staff_space_rounded);
                endfor;
        fi;
 enddef;