api: use C for config

This commit is contained in:
shagu
2017-02-26 20:42:08 +01:00
parent e20e4ef385
commit 1766dd4ba0
30 changed files with 603 additions and 603 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
pfUI:RegisterModule("pixelperfect", function ()
if pfUI_config.global.pixelperfect == "1" then
if C.global.pixelperfect == "1" then
local resolution = GetCVar("gxResolution")
for screenwidth, screenheight in string.gfind(resolution, "(.+)x(.+)") do
local scale = (min(2, max(.64, 768/screenheight)))