al_get_new_di...y_refresh_rate(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ NAME ✨

okay bestie, so this page is for al_get_new_display_refresh_rate β€” and yeah, the title up top got cut off into al_get_new_di...y_refresh_rate because terminals are dramatic like that πŸ’…. It's an Allegro 5 API page, and the manual it lives in is 3alleg5. Anyway. Let's get into it 🫢


🌸 SYNOPSIS 🌸

the way you summon it:

#include <allegro5/allegro.h>

int al_get_new_display_refresh_rate(void)

no args, no drama, she just returns an int ✨


πŸ’– DESCRIPTION πŸ’–

Get the requested refresh rate to be used when creating new displays on the calling thread.

that's it. that's the whole vibe. it's giving "tell me what refresh rate I asked for" β€” specifically the one that's gonna be used for the new displays you make on the calling thread. not some global thing, not the actual live display's rate, just the requested one you set up earlier. iykyk πŸ¦‹

lowkey important: it's the requested value, so don't go thinking this is a promise about what the monitor is literally doing, bestie. it's what was asked for. periodt.

πŸ‘‘ SEE ALSO πŸ‘‘


that's the whole page, no cap 🌈

Allegro reference manual β€” that's the source/version energy right there, and the footer was just the same thing again: Allegro reference manual on the left, al_get_new_di...y_refresh_rate(3alleg5) on the right. so yeah, that's a wrap, go call your setter and live your best display-creation life πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from