---
name: "al_get_num_display_modes"
section: "3"
platform: "linux"
package: "allegro"
version: "5.2.11.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/al_get_num_display_modes"
---

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

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(3)](/al_set_new_display_refresh_rate/3.md), and [al\_set\_new\_display\_flags(3)](/al_set_new_display_flags/3.md) 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(3)](/al_get_display_mode/3.md)
