get_refresh_rate(3alleg4)
β¨ NAME β¨
get_refresh_rate(3alleg4) β bestie, this is the Allegro manual's lil function for returning the current refresh rate. It's giving "tell me the Hz, pls" energy π
πΈ SYNOPSIS πΈ
okay so here's the summoning spell, copy it exactly:
#include <allegro.h>
int get_refresh_rate(void);
π¦ DESCRIPTION π¦
Returns the current refresh rate, if known. Not all drivers are able to report this information, so don't come for her if she's got nothing. If the actual rate is unknown, she returns 0. Periodt. π
lowkey important: 0 means "idk the actual rate", not a real refresh rate, bestie π
π SEE ALSO π
request_refresh_rate(3alleg4)β the other refresh-rate bestie, go say hi π«Ά
Allegro version 4.4.3, signing off π mwah, bye bestie πβ¨
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms