diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-05-16 09:42:08 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-05-16 09:42:08 -0700 |
commit | dc1f74b490e126a7b3fd63f4d39f724c5d171221 (patch) | |
tree | 85e46c23bfb2f8b29248bf4298497423de7edf6b | |
parent | f63beab65787a69d664c0a80a0879c1db7ea86ea (diff) | |
download | lines.love-dc1f74b490e126a7b3fd63f4d39f724c5d171221.tar.gz |
slightly better default sizing of drawings
-rw-r--r-- | main.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main.lua b/main.lua index 0ecc821..b4b1610 100644 --- a/main.lua +++ b/main.lua @@ -38,7 +38,7 @@ previous_mode = nil -- All drawings span 100% of some conceptual 'page width' and divide it up -- into 256 parts. `drawingw` describes their width in pixels. -drawingw = 400 -- pixels +drawingw = nil -- pixels function pixels(n) -- parts to pixels return n*drawingw/256 end @@ -65,6 +65,7 @@ function love.load(arg) love.window.setMode(screenw, screenh) love.window.setTitle("Text with Lines") love.keyboard.setTextInput(true) -- bring up keyboard on touch screen + drawingw = math.floor(screenh/2/40)*40 end function love.draw() |