- Try fix iOS portrait issue
This commit is contained in:
20
conf.lua
20
conf.lua
@@ -43,17 +43,19 @@ function love.conf(t)
|
|||||||
W.display=1 -- Monitor ID
|
W.display=1 -- Monitor ID
|
||||||
W.highdpi=true -- High-dpi mode for the window on a Retina display
|
W.highdpi=true -- High-dpi mode for the window on a Retina display
|
||||||
W.x,W.y=nil,nil -- Position of the window
|
W.x,W.y=nil,nil -- Position of the window
|
||||||
W.borderless=MOBILE -- Display window frame
|
-- if portrait then
|
||||||
W.resizable=not MOBILE -- Whether window is resizable
|
-- W.width,W.height=720,1280
|
||||||
W.fullscreen=MOBILE -- Fullscreen mode
|
-- W.minwidth,W.minheight=360,640
|
||||||
W.title="Techmino "..require "version".string -- Window title
|
-- else
|
||||||
if portrait then
|
|
||||||
W.width,W.height=720,1280
|
|
||||||
W.minwidth,W.minheight=360,640
|
|
||||||
else
|
|
||||||
W.width,W.height=1280,720
|
W.width,W.height=1280,720
|
||||||
W.minwidth,W.minheight=640,360
|
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
|
if fs.getInfo('media/image/icon.png') then
|
||||||
W.icon='media/image/icon.png'
|
W.icon='media/image/icon.png'
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user