From 0f3dd61249dac490d2abbc397165227e7ce5b36f Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Tue, 25 May 2021 15:55:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf.lua | 1 - parts/gametoolfunc.lua | 2 +- parts/texture.lua | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/conf.lua b/conf.lua index 66378881..5f76c345 100644 --- a/conf.lua +++ b/conf.lua @@ -22,7 +22,6 @@ function love.conf(t) W.minwidth,W.minheight=640,360 W.borderless=false W.resizable=true - W.fullscreentype='desktop'--'exclusive' W.fullscreen=false W.vsync=0--Unlimited FPS W.msaa=false--Num of samples to use with multi-sampled antialiasing diff --git a/parts/gametoolfunc.lua b/parts/gametoolfunc.lua index 850a2c79..0ea681f2 100644 --- a/parts/gametoolfunc.lua +++ b/parts/gametoolfunc.lua @@ -15,7 +15,7 @@ local SETTING,GAME,SCR=SETTING,GAME,SCR function switchFullscreen() SETTING.fullscreen=not SETTING.fullscreen love.window.setFullscreen(SETTING.fullscreen) - love.resize(love.graphics.getWidth(),love.graphics.getHeight()) + love.resize(gc.getWidth(),gc.getHeight()) end diff --git a/parts/texture.lua b/parts/texture.lua index 43408731..12864ea3 100644 --- a/parts/texture.lua +++ b/parts/texture.lua @@ -1,5 +1,4 @@ local gc=love.graphics -local ins=table.insert local function NSC(x,y)--New & Set Canvas local _=gc.newCanvas(x,y)