al_set_display_flag(3)
π al_set_display_flag(3) π
okay bestie, welcome to the Library Functions Manual β this is the Allegro 5 API page for al_set_display_flag(3), aka the little switch that turns a display flag on or off. β¨
πΈ NAME πΈ
al_set_display_flag β Allegro 5 API
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
bool al_set_display_flag(ALLEGRO_DISPLAY *display, int flag, bool onoff)
π DESCRIPTION π
So like, this function enables or disables one of the display flags, bestie. The flags are the same ones as for al_set_new_display_flags(3). But here's the tea: the only flags you can change after creation are:
ALLEGRO_FULLSCREEN_WINDOWALLEGRO_FRAMELESSALLEGRO_MAXIMIZED
If the driver supports toggling the specified flag, you get true; if not, you get false. And if you wanna check whether the given display property actually changed, use al_get_display_flags(3) β she'll tell you the truth. π
π¦ SINCE π¦
5.0.7, 5.1.2
π SEE ALSO π
From the Allegro reference manual, page al_set_display_flag(3) β bye bestie, go toggle responsibly π
β¨π«Ά
π¦ 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