有效窗口尺寸定义在SCR内而不是直接硬写进代码

This commit is contained in:
MrZ626
2020-11-09 10:28:43 +08:00
parent c205e30fc1
commit 19917faa7b
3 changed files with 11 additions and 10 deletions

View File

@@ -26,8 +26,8 @@ end
function LOG.draw()
if debugMesList[1]then
gc.push("transform")
local k=SCR.w/1280
setFont(int(20*k))
local k=SCR.w/SCR.w0
setFont(int(4*k)*5)
for i=1,#debugMesList do
local M=debugMesList[i]
local t=M.time