Wowpedia
Advertisement
Wowpedia
234,709
pages
Game Flavors
Links
Patch
Added in 1.1.0 / 1.13.2

Returns the height of the window in pixels. This value is affected by the UI's 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