al_apply_window_constraints - Man Page

Allegro 5 API

Synopsis

#include <allegro5/allegro.h>

void al_apply_window_constraints(ALLEGRO_DISPLAY *display, bool onoff)

Description

Enable or disable previously set constraints by al_set_window_constraints(3) function.

If enabled, the specified display will be automatically resized to new sizes to conform constraints in next cases:

Constrains are not applied when a display is toggle from windowed to maximized or fullscreen modes. When a display is toggle from maximized/fullscreen to windowed mode, then the display may be resized as described above. The later case is also possible when a user drags the maximized display via mouse.

If disabled, the specified display will stop using constraints.

See Also

al_get_window_constraints(3), al_set_window_constraints(3)

Referenced By

al_set_window_constraints(3).

Allegro reference manual