mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-21 23:26:56 +00:00
hotfix
use useUiScale CVar to calculate pixel perfect borders
This commit is contained in:
+1
-1
@@ -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(.+)")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user