use useUiScale CVar to calculate pixel perfect borders
This commit is contained in:
Meow
2026-04-01 11:46:57 +02:00
parent fe09495c55
commit 7dcac8104f
+1 -1
View File
@@ -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(.+)")