WoW API < GetScreenResolutions

Returns a list of available screen resolutions

resolution1, resolution2, resolution3, ... = GetScreenResolutions()

Takes[edit | edit source]

Nothing

Returns[edit | edit source]

String resolutionN
String representation of the Nth resolution

Example[edit | edit source]

local resolutions = {GetScreenResolutions()} for i,entry in resolutions do DEFAULT_CHAT_FRAME:AddMessage(format('Resolution %u: %s', i, entry)) end Output: Resolution 1: 800x600 Resolution 2: 1024x768 Resolution 3: 1280x1024
Community content is available under CC-BY-SA unless otherwise noted.