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:
- Redrawing smoothly while display is being resized
- Blacking out the display while resizing
- d3d_disp->render_target is NULL, segfault
- ALLEGRO_RESIZABLE & Mouse Pointer Collision Detection
- How do you change the screen resolution?
- al_draw_bitmap() wont work after al_resize_display()
- Fullscreen window creation
- characters missing after al_resize_display()
- Allegro windows show up on incorrect monitor (continued)
- Center primitive after resize
Other recent discussions:
- Resize window
- D3D Font Issue is sometime back with fullscreen toggle
- Patch to add window constraint functions
- Allegro 5.0.4 crash if mixing resize/create_display
- allegro_resizable questions
- Setting widow constraints cross platform?
- [A5] Double buffering
- [A5.0.2] SetWindowPos vs ALLEGRO_DISPLAY
- [al5] Setting the minimum and maximum window size?