GetDisplayAspectRatio
This function was added in DSL 1
Description
Return the current aspect ratio. This value is the same as dividing the width
and height
returned by GetDisplayResolution
.
function GetDisplayAspectRatio() --[[ ... ]] end
Parameters
None.
Return Values
aspectRatio
:number
- The current display aspect ratio, calculated aswidth / height
.
Example
local aspectRatio = GetDisplayAspectRatio()
print("Current Display Aspect Ratio: " .. aspectRatio)