mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-03 12:10:01 +00:00
api: use dynamic shortcut for string.gfind
This commit is contained in:
@@ -16,7 +16,7 @@ pfUI:RegisterModule("pixelperfect", function ()
|
||||
-- apply pixel dependent scaling
|
||||
local resolution = GetCVar("gxResolution")
|
||||
|
||||
for screenwidth, screenheight in string.gfind(resolution, "(.+)x(.+)") do
|
||||
for screenwidth, screenheight in gfind(resolution, "(.+)x(.+)") do
|
||||
local screenheight = tonumber(screenheight) / 8
|
||||
local scale = 768 / ( screenheight * conf )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user