Wikia

WoWWiki

API SetScreenResolution

Talk0
98,518pages on
this wiki

Returns the index of the current resolution in effect

 SetScreenResolution([index])

Takes

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

Returns

Nothing

Example

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
Advertisement | Your ad here

Photos

Add a Photo
62,044photos on this wiki
See all photos >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki