diff --git a/2/3/4/5/6/7/ElvUI/Core/core.lua b/2/3/4/5/6/7/ElvUI/Core/core.lua index 69e66d7..6c05be1 100644 --- a/2/3/4/5/6/7/ElvUI/Core/core.lua +++ b/2/3/4/5/6/7/ElvUI/Core/core.lua @@ -34,10 +34,8 @@ E.version = GetAddOnMetadata("ElvUI", "Version") E.myrealm = GetRealmName() E.wowbuild = GetBuildInfo() E.wowbuild = tonumber(E.wowbuild) E.resolution = GetCVar("gxResolution") -for screenwidth, screenheight in string.gfind(E.resolution, "(.+)x(.+)") do - E.screenheight = tonumber(screenheight) - E.screenwidth = tonumber(screenwidth) -end +E.screenheight = tonumber(match(E.resolution, "%d+x(%d+)")); +E.screenwidth = tonumber(match(E.resolution, "(%d+)x+%d")); E.isMacClient = IsMacClient() E.LSM = LSM