Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Advertisement

Returns the height of the window in pixels, affected by UI scale.

screenHeight = GetScreenHeight()

Returns[]

screenHeight
number - Height 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() ) )
Advertisement