|
-- 根據屏幕分辨率自動切換DPI
function MyDisplayChangedHandler_AutoDPI()
local cur_res_x = Screen:GetX()
if last_res_x == cur_res_x then return end
last_res_x = cur_res_x
if last_res_x >= 3840 then
Screen:DPI(150)
elseif last_res_x >= 1440 then
Screen:DPI(125)
elseif last_res_x >= 800 then
Screen:DPI(100)
end
end
-- 屏幕分辨率發生變更後,調整桌面和任務欄
function MyDisplayChangedHandler_Adjust()
Screen:Adjust()
end
都試過,無效(螢幕可上1920*1080)
請教如何改 |
|