Changes the screen resolution
See also Video functions.
Signature:
SetScreenResolution(index)
Arguments:
index- Index of a resolution setting (between 1 andselect("#",GetScreenResolutions())) (number)
Examples:
-- Print the possible resolutions to ChatFrame1
-- These indices can then be used in SetScreenResolution()
local resolutions = {GetScreenResolutions()}
for idx,resolution in ipairs(resolutions) do
print("Resolution " .. idx .. ": " .. resolution)
end