From eef22f424268d7927890df804c64fb9c219bf1a6 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 12 May 2022 07:55:14 -0700 Subject: make space for multiple kinds of width --- main.lua | 6 +++--- 1 file 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 -- cgit 1.4.1-2-gfad0