pixelperfect: add fallback and always set cvars

This commit is contained in:
shagu
2024-11-23 00:22:21 +01:00
parent f5e45cdd4f
commit 3975ffb334
+6 -1
View File
@@ -22,7 +22,12 @@ pfUI:RegisterModule("pixelperfect", "vanilla:tbc", function ()
UIParent:SetScale(.9)
end
else
UIParent:SetScale(statics[conf])
local scale = conf and statics[conf] or 1
SetCVar("uiScale", scale)
SetCVar("useUiScale", 1)
UIParent:SetScale(scale)
end
end