display_get_width

Returns the width of the display.

Syntax:

display_get_width();


Returns: Real


Description

This function will return the width of the display (in pixels). Note that on the HTML5 target, this value is the width of the browser window, rather than the physical display size.


Example:

mywidth = display_get_width();

This would set the variable "mywidth" to the display's width.


Back: Windows And Views
Next: display_get_orientation
© Copyright YoYo Games Ltd. 2018 All Rights Reserved