---
name: "al_get_num_display_modes"
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_get_num_display_modes/3alleg5"
---

# al\_get\_num\_display\_modes(3alleg5)

Allegro 5 API

## NAME

al\_get\_num\_display\_modes - Allegro 5 API

## SYNOPSIS

-

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

## DESCRIPTION

Get the number of available fullscreen display modes for the current set of display parameters. This will use the values set with al\_set\_new\_display\_refresh\_rate(3alleg5), and al\_set\_new\_display\_flags(3alleg5) to find the number of modes that match. Settings the new display parameters to zero will give a list of all modes for the default driver.

## SEE ALSO

al\_get\_display\_mode(3alleg5)
