- Try fix iOS portrait issue

This commit is contained in:
ParticleG
2023-02-21 11:54:58 +08:00
parent 17bb8dbe6d
commit d1cef7ed84

View File

@@ -43,17 +43,19 @@ function love.conf(t)
W.display=1 -- Monitor ID
W.highdpi=true -- High-dpi mode for the window on a Retina display
W.x,W.y=nil,nil -- Position of the window
W.borderless=MOBILE -- Display window frame
W.resizable=not MOBILE -- Whether window is resizable
W.fullscreen=MOBILE -- Fullscreen mode
W.title="Techmino "..require "version".string -- Window title
if portrait then
W.width,W.height=720,1280
W.minwidth,W.minheight=360,640
else
-- if portrait then
-- W.width,W.height=720,1280
-- W.minwidth,W.minheight=360,640
-- else
W.width,W.height=1280,720
W.minwidth,W.minheight=640,360
end
-- end
-- W.borderless=MOBILE -- Display window frame
-- W.resizable=not MOBILE -- Whether window is resizable
-- W.fullscreen=MOBILE -- Fullscreen mode
W.borderless=true
W.resizable=false
W.title="Techmino "..require "version".string -- Window title
if fs.getInfo('media/image/icon.png') then
W.icon='media/image/icon.png'
end