al_resize_display(3)
π NAME π
al_resize_display β the Allegro 5 API bestie that resizes your display, periodt. This page lives in the Library Functions Manual, and yes, we're absolutely in al_resize_display(3) territory, iykyk π
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
bool al_resize_display(ALLEGRO_DISPLAY *display, int width, int height)
π DESCRIPTION π
Okay so al_resize_display does exactly what it says on the tin: it resizes the display. It returns true on success, or false on error. No cap, that's the whole return vibe, fr fr.
The way this one works on both fullscreen and windowed displays, regardless of the ALLEGRO_RESIZABLE flag? Iconic. It's not gatekeeping resizing behind that flag at all β it just does the thing π
It also adjusts the clipping rectangle to the full size of the backbuffer. So the clip region gets matched up to the whole backbuffer β slay β¨
π₯ SEE ALSO π₯
al_acknowledge_resize(3)β go read that one too, bestie π«Ά
π cute sign-off: this came from the Allegro reference manual, page al_resize_display(3). The original footer didn't list a date, so we're not inventing one β periodt π
π¦ where this page comes from
- arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms