Changes the screen resolution


See also Video functions.

Signature:

SetScreenResolution(index)

Arguments:

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