Returns the aspect ratio of the game display. Used in the default UI to calculate dimensions for scaling captured video to predetermined widths.

For example, if the aspect ratio is 0.75 (as on a 1600x1200 screen), a movie scaled to 640 pixels wide will be 480 pixels tall; but if the aspect ratio is 0.625 (as on a 1440x900 screen), a movie scaled to 640 pixels wide will be 400 pixels tall.


See also Mac client functions.

Signature:

ratio = MovieRecording_GetAspectRatio()

Returns:

  • ratio - Ratio of the game display's width to its height (number)
This function is designed for the Mac OS X client only