AL_SET_NEW_DISPLAY_REFRESH_RATE(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

πŸŽ€ 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 🌈


πŸ’œ 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