al_acknowledge_resize
bool al_acknowledge_resize(ALLEGRO_DISPLAY *display)
Introduced in 5.0.0
When the user receives a resize event from a resizable display, if they wish the display to be resized they must call this function to let the graphics driver know that it can now resize the display. Returns true on success.
Adjusts the clipping rectangle to the full size of the backbuffer.
Note that a resize event may be outdated by the time you acknowledge it; there could be further resize events generated in the meantime.
See also: al_resize_display, ALLEGRO_EVENT
Examples: ex_expose, ex_mouse_events, ex_multiwin, ex_ogre3d, ex_resize2, ex_threads
Most helpful discussions:
- A5 Displays (Resize/Stretching) (1)
- Cannot exit fullscreen with ALLEGRO_OPENGL flag
- Redrawing smoothly while display is being resized
- Blacking out the display while resizing
- Drawing text slows down FPS dramatically
- Change adapter un runtime
- al_acknowledge_resize and al_create_builtin_font
- d3d_disp->render_target is NULL, segfault
- No Key-Up event received on Alt+Tab out
- PSA/RFC: Changing projection transform to be bitmap local state
Other recent discussions:
- Help needed installing agui library
- How do you structure multiple game screens?
- ALLEGRO_RESIZABLE & Mouse Pointer Collision Detection
- display screen manipulation
- Tic
- resize display handling
- NPC Conversation
- Getting user input in allegro 5
- GUI Basics? (AGUI)
- Long delay on mouse events when using OpenGL