commit f2236ad09fa9dbfa07073385513a041608be1a85 parent c575f43ee07a18a9f8257022fe67817ac5d2e234 Author: Nihal Jere <nihal@nihaljere.xyz> Date: Sat, 8 Oct 2022 22:30:56 -0500 improve end padding Diffstat:
M | smallpond.lua | | | 10 | ++++++++++ |
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/smallpond.lua b/smallpond.lua @@ -699,6 +699,16 @@ for i, staff in pairs(stafforder) do yoff = yoff + extent.ymax - extent.ymin end +for staff, item in ipairs(extra3) do + if item.kind == 'barline' then + if item.x < xmin then + xmin = item.x + elseif item.x > xmax then + xmax = item.x + end + end +end + create_surface(xmax - xmin, yoff) for _, staff in ipairs(stafforder) do