about summary refs log tree commit diff stats
path: root/main.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-05-25 13:35:32 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-05-25 13:35:32 -0700
commit442133fe7f629a825bbf30b05e29cc85b836c93c (patch)
tree7a15dfba5bf4e7762c8a19be33fa3371273861af /main.lua
parentfa103ca2e8674dd389888d77f9ef60f361a0c704 (diff)
downloadview.love-442133fe7f629a825bbf30b05e29cc85b836c93c.tar.gz
no, make sure to compute line width after screen dimensions
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.lua b/main.lua
index ce411d6..1c3ef50 100644
--- a/main.lua
+++ b/main.lua
@@ -62,10 +62,6 @@ Cursor_x, Cursor_y = 0, 0  -- in pixels
 Current_drawing_mode = 'line'
 Previous_drawing_mode = nil
 
--- maximum width available to either text or drawings, in pixels
-Line_width = math.floor(App.screen.width/2/40)*40
---? Line_width = 100
-
 Zoom = 1.5
 
 Filename = love.filesystem.getUserDirectory()..'/lines.txt'
@@ -87,6 +83,10 @@ function App.initialize(arg)
 --?   App.screen.height = 200
 --?   love.window.setMode(App.screen.width, App.screen.height)
 
+  -- maximum width available to either text or drawings, in pixels
+  Line_width = math.floor(App.screen.width/2/40)*40
+--?   Line_width = 100
+
   -- still in App.initialize
   if #arg > 0 then
     Filename = arg[1]