al_set_display_option(3)
π al_set_display_option(3) β the Allegro glow-up π
This one comes straight outta the Library Functions Manual, and itβs all about changing a display option after the display has already been created. Very βfix it in post,β but for your Allegro display, bestie. β¨
π NAME π
al_set_display_option β Allegro 5 API π
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
void al_set_display_option(ALLEGRO_DISPLAY *display, int option, int value)
π DESCRIPTION π
Okay so: this function changes an option that was previously set for a display. After displays are created, they take on the options set with al_set_new_display_option(3).
Calling al_set_new_display_option(3) after that only changes options for newly created displays β it does not touch the options of displays that already exist. al_set_display_option(3) is the one that lets you change some of these values on an existing display. Not all display options can be changed or changing them will have no effect.
π«Ά Heads up, bestie: changing options other than those listed below is undefined. Like, do not do a little experimental side quest there.
Hereβs the option thatβs actually listed below:
ALLEGRO_SUPPORTED_ORIENTATIONSβ You can change this to allow new orientations of the screen/device, or to restrict previously enabled ones. Seeal_set_new_display_option(3)for more information on this option. π
πΈ SINCE πΈ
5.1.5 β iconic behavior since then, no cap. π
π¦ SEE ALSO π¦
Thatβs the whole vibe, bestie. Footer sign-off: Allegro reference manual π β and this page doesnβt print a separate date line, so no made-up date, just the classic manual credit. Mwah. πβ¨
π¦ 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