al_set_display_flag(3alleg5)
π al_set_display_flag β Allegro 5 API
okay bestie, so this one lives in the Allegro 5 manual (that's the 3alleg5 situation, iykyk) and it's literally the glow-up button for your display flags β¨
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
bool al_set_display_flag(ALLEGRO_DISPLAY *display, int flag, bool onoff)
πΈ DESCRIPTION πΈ
So basically you pass in a display, a flag, and an onoff β and this function toggles that one display flag on or off. That's it, that's the whole vibe π
The flags are the exact same crew as the ones for al_set_new_display_flags(3alleg5). BUT β and this is the part you have to hear me on β the only flags you can switch up after the display already exists are these three queens:
ALLEGRO_FULLSCREEN_WINDOWALLEGRO_FRAMELESSALLEGRO_MAXIMIZED
That's the whole list. No extras, no secret menu, periodt π
It returns true if the driver actually supports toggling the flag you asked for, and false if it doesn't (rip π«Ά). And here's the sneaky part β a true doesn't mean the property actually changed. To check that, go ask al_get_display_flags(3alleg5) and see what really happened. It's giving "trust but verify" fr fr π
β SINCE β
5.0.7, 5.1.2
π¦ SEE ALSO π¦
k that's the whole page bestie, no cap π this came straight out of the Allegro reference manual, and yes the header up top is literally al_set_display_flag(3alleg5) β iconic of it. go toggle something, ily, bye ππ
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms