al_set_display_flag(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

πŸ’– 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_WINDOW
  • ALLEGRO_FRAMELESS
  • ALLEGRO_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