Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
WoW:API SetScreenResolution
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{wowapi}}__NOTOC__ 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 [[API_GetScreenResolutions|GetScreenResolutions()]]. :: Passing nil will default this argument to 1, the lowest resolution available ===Returns=== : Nothing ===Example=== <dd> 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
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Tocright
(
edit
)
Template:Wowapi
(
edit
)