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:
- Builtin font doesn't work in resizeable display on windows (1)
- A5 Displays (Resize/Stretching) (1)
- A5 Fullscreen Vs Windowed
- Multiple threads/displays, Event handling question
- got a bug in my FULLSCREEN WINDOWED MODE switchout
- git format-patch: troubles with white space trailing
- Scaling down runtime created bitmaps makes them transparent
- video & physfs problems in the same file
- How to make a resizable window in Allegro 5
- Drawing antialiased primitives to bitmaps?
Other recent discussions:
- Allegro and OpenGL Drawing Problem
- [Allegro5] Popup menu fails to display
- ALLEGRO_EVENT_MOUSE_ENTER_DISPLAY fired outside edge of display
- 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