改写控件滚动相关代码,解决控件颜色偏差和非标准屏幕尺寸未定义行为

This commit is contained in:
MrZ626
2021-05-28 00:15:44 +08:00
parent 7079061f22
commit 1f1d69d484
2 changed files with 33 additions and 32 deletions

View File

@@ -351,6 +351,7 @@ 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
WIDGET.resize(w,h)
SHADER.warning:send("w",w*SCR.dpi)
SHADER.warning:send("h",h*SCR.dpi)