From 3975ffb334e9b88e7e3ba7426e6df8a0954cf49e Mon Sep 17 00:00:00 2001 From: shagu Date: Sat, 23 Nov 2024 00:22:21 +0100 Subject: [PATCH] pixelperfect: add fallback and always set cvars --- modules/pixelperfect.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/pixelperfect.lua b/modules/pixelperfect.lua index b8b0b7f6..ec4166d4 100644 --- a/modules/pixelperfect.lua +++ b/modules/pixelperfect.lua @@ -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