about summary refs log tree commit diff stats
path: root/run.lua
diff options
context:
space:
mode:
Diffstat (limited to 'run.lua')
-rw-r--r--run.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/run.lua b/run.lua
index 347eea9..28516f6 100644
--- a/run.lua
+++ b/run.lua
@@ -75,6 +75,13 @@ function run.initialize_default_settings()
 end
 
 function run.initialize_window_geometry(em_width)
+  local os = love.system.getOS()
+  if os == 'Android' or os == 'iOS' then
+    -- maximizing on iOS breaks text rendering: https://github.com/deltadaedalus/vudu/issues/7
+    -- no point second-guessing window dimensions on mobile
+    App.screen.width, App.screen.height, App.screen.flags = App.screen.size()
+    return
+  end
   -- maximize window
   App.screen.resize(0, 0)  -- maximize
   App.screen.width, App.screen.height, App.screen.flags = App.screen.size()