al_get_video_scaled_height(3alleg5)
β¨ al_get_video_scaled_height(3alleg5) β¨
okay bestie, welcome to the Allegro 5 API β this one's a lil function from the allegro_video.h era and it's genuinely so useful, no cap π
πΈ SYNOPSIS πΈ
#include <allegro5/allegro_video.h>
float al_get_video_scaled_height(ALLEGRO_VIDEO *video)
π DESCRIPTION π
So likeβ¦ this function hands you back the height you should actually draw the video frame at. That's it, that's the whole job π
But wait, why is that even a thing?? Because β and this is the tea β videos often do not use square pixels. Yeah. Non-square pixels. Iconic of them honestly. So this will may return a value larger than the height of the frame bitmap, and that's not a bug, that's just the pixel aspect ratio doing its main character thing π¦
fr fr: don't just grab the bitmap height and call it a day. ask this function. trust. π
π SEE ALSO π
β SINCE β
5.1.12 β been here since way back, lowkey a classic π
and that's the whole page, bestie!! this was the Allegro reference manual version of al_get_video_scaled_height(3alleg5) β go draw your video at the right height, you're gonna ate it up πππ«Ά
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms