al_resize_display

bool al_resize_display(ALLEGRO_DISPLAY *display, int width, int height)
Introduced in 5.0.0

Resize the display. Returns true on success, or false on error. This works on both fullscreen and windowed displays, regardless of the ALLEGRO_RESIZABLE flag.

Adjusts the clipping rectangle to the full size of the backbuffer.

See also: al_acknowledge_resize

Examples: ex_fs_resize, ex_fs_window, ex_resize


Most helpful discussions:

Other recent discussions: