---
name: "al_set_new_display_adapter"
section: "3alleg5"
platform: "linux"
package: "allegro5-doc"
version: "2:5.2.10.1+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/al_set_new_display_adapter/3alleg5"
---

# al\_set\_new\_display\_adapter(3alleg5)

Allegro 5 API

## NAME

al\_set\_new\_display\_adapter - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  void al_set_new_display_adapter(int adapter)
  ```

## DESCRIPTION

Sets the adapter to use for new displays created by the calling thread. The adapter has a monitor attached to it. Information about the monitor can be gotten using al\_get\_num\_video\_adapters(3alleg5) and al\_get\_monitor\_info(3alleg5).

To return to the default behaviour, pass `ALLEGRO_DEFAULT_DISPLAY_ADAPTER`.

## SEE ALSO

al\_get\_num\_video\_adapters(3alleg5), al\_get\_monitor\_info(3alleg5)
