about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2023-01-16 09:57:06 -0800
committerKartik K. Agaram <vc@akkartik.com>2023-01-16 09:57:06 -0800
commit36ec0b4b06007c544265b5c8ba9089560e6a0dab (patch)
tree84f3a83e689e0a7a7a31ed4b76d0cdeb1ee236aa
parentd8ec2597110ac95fcb61c5a46af95bf094c95268 (diff)
parente7b37e39dee84da1ef2e6fc008e0f7ea32fa3b57 (diff)
downloadtext.love-36ec0b4b06007c544265b5c8ba9089560e6a0dab.tar.gz
Merge lines.love
-rw-r--r--main.lua6
-rw-r--r--run.lua5
-rw-r--r--source.lua5
3 files changed, 6 insertions, 10 deletions
diff --git a/main.lua b/main.lua
index 7c2e34c..1a1d440 100644
--- a/main.lua
+++ b/main.lua
@@ -85,6 +85,12 @@ function App.initialize_globals()
 end
 
 function App.initialize(arg)
+  love.window.setVSync(0)  -- remove some delays in exchange for risk of screen tears; we're not a game
+  love.keyboard.setTextInput(true)  -- bring up keyboard on touch screen
+  love.keyboard.setKeyRepeat(true)
+
+  love.graphics.setBackgroundColor(1,1,1)
+
   if Current_app == 'run' then
     run.initialize(arg)
   elseif Current_app == 'source' then
diff --git a/run.lua b/run.lua
index fb1f9c1..3035319 100644
--- a/run.lua
+++ b/run.lua
@@ -16,11 +16,6 @@ end
 -- called only for real run
 function run.initialize(arg)
   log_new('run')
-  love.keyboard.setTextInput(true)  -- bring up keyboard on touch screen
-  love.keyboard.setKeyRepeat(true)
-
-  love.graphics.setBackgroundColor(1,1,1)
-
   if Settings then
     run.load_settings()
   else
diff --git a/source.lua b/source.lua
index 0d12415..baecdd1 100644
--- a/source.lua
+++ b/source.lua
@@ -61,11 +61,6 @@ end
 -- called only for real run
 function source.initialize()
   log_new('source')
-  love.keyboard.setTextInput(true)  -- bring up keyboard on touch screen
-  love.keyboard.setKeyRepeat(true)
-
-  love.graphics.setBackgroundColor(1,1,1)
-
   if Settings and Settings.source then
     source.load_settings()
   else