From 7dcac8104fa4aeed6dcf53cc348ab44aea883d1e Mon Sep 17 00:00:00 2001 From: Meow <30401521+me0wg4ming@users.noreply.github.com> Date: Wed, 1 Apr 2026 11:46:57 +0200 Subject: [PATCH] hotfix use useUiScale CVar to calculate pixel perfect borders --- api/api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(.+)")