启动时如果是安卓系统就设置窗口resizable=false,防止未来更新SDL2后屏幕乱转
This commit is contained in:
5
main.lua
5
main.lua
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user