(Formerly known as system.viewport_height, which is now obsolete)
readonly static int System.ViewportHeight;
Returns the height of the current viewport. This is reported in 320x200-resolution units,
and allows you to find out what the maximum co-ordinates you can pass to functions like
Mouse.SetPosition are.
Example:
Display("Game viewport: %d x %d", System.ViewportWidth, System.ViewportHeight);
will display the current viewport size
See Also: System.ViewportWidth
|