hdgraphic: modify scaling after setting the cvar

This commit is contained in:
shagu
2018-06-21 22:51:48 +02:00
parent 8401fac9d0
commit d86bb48940
+4 -3
View File
@@ -19,13 +19,14 @@ pfUI:RegisterModule("hdgraphic", function ()
for screenwidth, screenheight in string.gfind(resolution, "(.+)x(.+)") do
local screenheight = tonumber(screenheight) / 8
local scale = 768 / ( screenheight * conf )
SetCVar("uiScale", scale)
SetCVar("useUiScale", 1)
UIParent:SetScale(scale)
UIParent:SetWidth(screenwidth)
UIParent:SetHeight(screenheight)
UIParent:SetPoint("CENTER",0,0)
SetCVar("uiScale", scale)
SetCVar("useUiScale", 1)
end
end
end