pixelperfect: use independent static scale values

This commit is contained in:
shagu
2024-11-22 21:11:56 +01:00
parent 2ed9a02bea
commit f5e45cdd4f
+1 -13
View File
@@ -22,19 +22,7 @@ pfUI:RegisterModule("pixelperfect", "vanilla:tbc", function ()
UIParent:SetScale(.9)
end
else
-- apply pixel dependent scaling
local resolution = GetCVar("gxResolution")
for screenwidth, screenheight in gfind(resolution, "(.+)x(.+)") do
local screenheight = tonumber(screenheight) / 8
local scale = 768 / ( screenheight * conf )
scale = math.max(statics[conf] or 0, scale)
SetCVar("uiScale", scale)
SetCVar("useUiScale", 1)
UIParent:SetScale(scale)
end
UIParent:SetScale(statics[conf])
end
end