lock_bitmap(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

πŸ’– lock_bitmap(3) πŸ’–

ok so this is a page from the Allegro manual, section 3 of the manual pages, and the whole entire vibe is lock_bitmap β€” locking up the memory that a bitmap is using. yes bestie, we're in the Allegro game programming library, and it's giving very specific niche energy πŸŽ€


✨ NAME ✨

lock_bitmap β€” locks the memory used by a bitmap. it lives in the Allegro game programming library, and no cap, that's the whole job description 🫢


✨ SYNOPSIS ✨

#include <allegro.h>

void lock_bitmap(BITMAP *bitmap);

ok so you gotta pull in the header first, then you call it with one BITMAP * and that's it. literally one argument. we love a low-maintenance function πŸ’…


✨ DESCRIPTION ✨

so here's the tea: under DOS, this locks all the memory that a bitmap is using. that's it, that's the function πŸ¦‹

and bestie, listen β€” you don't normally need to call this one at all. like, at ALL at all. the only time you'd ever reach for it is if you're doing very weird things in your program πŸ‘€ like, genuinely unhinged, off-the-rails, what-are-you-even-doing weird. if that's you, slay, this is your girl. if that's not you, close the tab, you're fine, go touch some grass 🌸

πŸ’€ real talk though: it's DOS-specific and it's for the weird stuff. if you don't already know why you need it, you don't need it. periodt.

🌈 a lil sign-off 🌈

this whole page came to you courtesy of Allegro, version 4.4.3 β€” iconic behavior, honestly, 4.4.3 the moment fr fr. tysm for reading my little manpage rewrite, mwah πŸ’–πŸ§šβœ¨

πŸ“¦ where this page comes from