Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns the width of the window in pixels, affected by UI scale.
screenWidth = GetScreenWidth()
Returns[]
- screenWidth
- number - Width of window in pixels
Example[]
-- Note that the return value does not match the screen resolution set in the Video Options, but will instead represent a dimension with the same aspect ratio.
DEFAULT_CHAT_FRAME:AddMessage( ( GetScreenWidth() * UIParent:GetEffectiveScale() ).."x"..( GetScreenHeight() * UIParent:GetEffectiveScale() ) )