diff --git a/api/api.lua b/api/api.lua index 95bdbd14..f4eb6c1f 100644 --- a/api/api.lua +++ b/api/api.lua @@ -1057,7 +1057,7 @@ function pfUI.api.GetPerfectPixel() if pfUI.pixel then return pfUI.pixel end if pfUI_config.appearance.border.pixelperfect == "1" then - local scale = GetCVar("uiScale") + local scale = GetCVar("useUiScale") == "1" and GetCVar("uiScale") or "1" local resolution = GetCVar("gxResolution") local _, _, screenwidth, screenheight = strfind(resolution, "(.+)x(.+)")