Skip to content

window_set_max_size

drewmccluskey edited this page Feb 12, 2019 · 3 revisions

window_set_max_size

Sets the game windows max size

Syntax:

window_set_max_size(size)
Argument Description
Size size What max size should be set

Returns: void

Description:

This function allows you to set the max size of the game window. It is very useful for not allowing an application window to be any larger than the current graphics.

Example:

window_set_max_size(new Size(200,200));

The above code will set the window size to 200px width and 200px height and not allow it to be any larger than that.

Back to window-functions

Clone this wiki locally