Fandom

WoWWiki

API SetScreenResolution

104,637pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

WoW API < SetScreenResolution

Returns the index of the current resolution in effect

 SetScreenResolution([index])

TakesEdit

Number index (optional)
This value specifies the new screen resolution, it must be the index of one of the values yielded by GetScreenResolutions().
Passing nil will default this argument to 1, the lowest resolution available

ReturnsEdit

Nothing

ExampleEdit

This sets the screen to 1024x768, if available:

local resolutions = {GetScreenResolutions()}
for i,entry in resolutions do
  if entry == '1024x768' then
    SetScreenResolution(i)
    break
  end
end

Also on Fandom

Random Wiki