mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-04 12:40:02 +00:00
hdgraphic: modify scaling after setting the cvar
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user