mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-26 05:50:50 +00:00
api: fix bug in border detection caching
This commit is contained in:
+1
-1
@@ -805,7 +805,7 @@ function pfUI.api.GetBorderSize(pref)
|
|||||||
if raw == -1 then raw = 3 end
|
if raw == -1 then raw = 3 end
|
||||||
|
|
||||||
local scaled = raw * GetPerfectPixel()
|
local scaled = raw * GetPerfectPixel()
|
||||||
pfUI.borders = { raw, scaled }
|
pfUI.borders[pref] = { raw, scaled }
|
||||||
|
|
||||||
return raw, scaled
|
return raw, scaled
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user