AL_SET_NEW_DISPLAY_REFRESH_RATE(3)
π NAME π
al_set_new...efresh_rate(3) β yes, that header is the page title, bestie. The actual function is al_set_new_display_refresh_rate, and itβs part of the Allegro 5 API from the Allegro reference manual.
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
void al_set_new_display_refresh_rate(int refresh_rate)
π DESCRIPTION π
Okay so al_set_new_display_refresh_rate sets the refresh rate to use when creating new displays on the calling thread. Slay.
If the refresh rate is not available, al_create_display(3) will fail. Like, literally fail, no cap. A list of modes with refresh rates can be found with al_get_num_display_modes(3) and al_get_display_mode(3).
The default setting is zero (donβt care). Periodt. π
π SEE ALSO π
al_get_new_display_refresh_rate(3)β go check this one out too, bestie.
π brought to you by the Allegro reference manual β thatβs the source/version footer energy. No date was printed on the original page, so weβre not making one up, iykyk. π«Ά
π¦ where this page comes from
- arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms