场景模块支持窗口resize事件

This commit is contained in:
MrZ626
2021-05-04 02:07:12 +08:00
parent 1038e75a64
commit 42f3cd8e31
2 changed files with 3 additions and 0 deletions

View File

@@ -340,6 +340,7 @@ end
function love.resize(w,h)
SCR.resize(w,h)
if BG.resize then BG.resize(w,h)end
if SCN.resize then SCN.resize(w,h)end
SHADER.warning:send("w",w*SCR.dpi)
SHADER.warning:send("h",h*SCR.dpi)