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:
- Window Resize??
- Getting Allegro to Play Nice with Windows Scaling Settings
- got a bug in my FULLSCREEN WINDOWED MODE switchout
- Temporally blocking window resizing.
- How to make a resizable window in Allegro 5
- [Allegro5] Popup menu fails to display
- 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
Other recent discussions:
- 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
- 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