---
name: "al_set_new_display_refresh_rate"
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_refresh_rate/3alleg5"
---

# al\_set\_new\_display\_refresh\_rate(3alleg5)

Allegro 5 API

## NAME

al\_set\_new\_display\_refresh\_rate - Allegro 5 API

## SYNOPSIS

-

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

## DESCRIPTION

Sets the refresh rate to use when creating new displays on the calling thread. If the refresh rate is not available, al\_create\_display(3alleg5) will fail. A list of modes with refresh rates can be found with al\_get\_num\_display\_modes(3alleg5) and al\_get\_display\_mode(3alleg5).

The default setting is zero (don’t care).

## SEE ALSO

al\_get\_new\_display\_refresh\_rate(3alleg5)
