启动时如果是安卓系统就设置窗口resizable=false,防止未来更新SDL2后屏幕乱转

This commit is contained in:
MrZ626
2021-08-15 00:13:02 +08:00
parent ce937bd0bb
commit 4cf1f4ba15

View File

@@ -37,6 +37,11 @@ love.setDeprecationOutput(false)
love.keyboard.setKeyRepeat(true)
love.keyboard.setTextInput(false)
love.mouse.setVisible(false)
if SYSTEM=='Android'then
local w,h,f=love.window.getMode()
f.resizable=false
love.window.setMode(w,h,f)
end
--Load modules
require'Zframework'