diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-05-12 07:55:14 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-05-12 07:55:14 -0700 |
commit | eef22f424268d7927890df804c64fb9c219bf1a6 (patch) | |
tree | d72dcd531b299f78148bc8e34e1dacedf2aadc4f | |
parent | d42be8e6132a87c8a8e03f82f0105e1015db1bdd (diff) | |
download | text.love-eef22f424268d7927890df804c64fb9c219bf1a6.tar.gz |
make space for multiple kinds of width
-rw-r--r-- | main.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main.lua b/main.lua index 33c6a41..e612448 100644 --- a/main.lua +++ b/main.lua @@ -4,20 +4,20 @@ require 'repl' local utf8 = require 'utf8' lines = {} -width, height, flags = 0, 0, nil +screenw, screenh, screenflags = 0, 0, nil exec_payload = nil function love.load() table.insert(lines, '') love.window.setMode(0, 0) -- maximize - width, height, flags = love.window.getMode() + screenw, screenh, screenflags = love.window.getMode() love.keyboard.setTextInput(true) -- bring up keyboard on touch screen end function love.draw() button_handlers = {} love.graphics.setColor(1, 1, 1) - love.graphics.rectangle('fill', 1, 1, width-1, height-1) + love.graphics.rectangle('fill', 1, 1, screenw-1, screenh-1) love.graphics.setColor(0, 0, 0) local text local y = 0 |