mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-26 05:50:50 +00:00
pixelperfect: use independent static scale values
This commit is contained in:
@@ -22,19 +22,7 @@ pfUI:RegisterModule("pixelperfect", "vanilla:tbc", function ()
|
|||||||
UIParent:SetScale(.9)
|
UIParent:SetScale(.9)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
-- apply pixel dependent scaling
|
UIParent:SetScale(statics[conf])
|
||||||
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
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user