WoW:API SetScreenResolution: Difference between revisions
Jump to navigation
Jump to search
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
(part of a API redesign proposal, please don't change the layout for the next few days) |
m (Move page script moved page API SetScreenResolution to API SetScreenResolution without leaving a redirect) |
(No difference)
|
Latest revision as of 04:47, 15 August 2023
← WoW API < SetScreenResolution
Returns the index of the current resolution in effect
SetScreenResolution([index])
Takes[edit]
- 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[edit]
- Nothing