al_set_display_option(3)

al_set_display_option3

Allegro 5 api

Usage

#include <allegro5/allegro.h>
void al_set_display_option(ALLEGRO_DISPLAY *display, int option, int value)

Overview

Change 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) subsequently only changes options for newly created displays, and doesn’t touch the options of already created displays. al_set_display_option(3) allows changing some of these values. Not all display options can be changed or changing them will have no effect. Changing options other than those listed below is undefined.

•

ALLEGRO_SUPPORTED_ORIENTATIONS - This can be changed to allow new or restrict previously enabled orientations of the screen/device. See al_set_new_display_option(3) for more information on this option.

Since

5.1.5

From allegro 5.2.11.3-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.