From 48f3d293bd32f3853d9cf5e146d6e56710bd0466 Mon Sep 17 00:00:00 2001 From: ParticleG Date: Tue, 21 Feb 2023 14:09:44 +0800 Subject: [PATCH] - Try fix iOS portrait issue --- conf.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/conf.lua b/conf.lua index 9b126c9a..5296c175 100644 --- a/conf.lua +++ b/conf.lua @@ -43,16 +43,16 @@ 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 - -- 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 W.borderless=MOBILE -- Display window frame W.resizable=not MOBILE -- Whether window is resizable - W.fullscreen=MOBILE -- Fullscreen mode + W.fullscreentype="exclusive" -- Fullscreen type + 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 W.title="Techmino "..require "version".string -- Window title if fs.getInfo('media/image/icon.png') then W.icon='media/image/icon.png'