diff options
Diffstat (limited to 'app.lua')
-rw-r--r-- | app.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app.lua b/app.lua index 3ed3aa8..56cd244 100644 --- a/app.lua +++ b/app.lua @@ -163,6 +163,10 @@ function App.newText(font, s) return {type='text', data=s, text=love.graphics.newText(font, s)} end +function App.width(text) + return text.text:getWidth() +end + function App.screen.draw(obj, x,y) if type(obj) == 'userdata' then -- ignore most things as graphics the test harness can't handle @@ -192,10 +196,6 @@ function App.run_after_mousepress(x,y, button) App.draw() end -function App.width(text) - return text.text:getWidth() -end - function App.screen.check(y, expected_contents, msg) --? print('checking for "'..expected_contents..'" at y '..tostring(y)) local screen_row = 'y'..tostring(y) |