diff options
| author | Jon Santmyer <jon@jonsantmyer.com> | 2026-09-04 11:31:40 -0400 |
|---|---|---|
| committer | Jon Santmyer <jon@jonsantmyer.com> | 2026-09-04 11:31:40 -0400 |
| commit | 8251da342161767fe203627223ccd4a7026701c6 (patch) | |
| tree | af2db0f11b0ea8ad35f88663a855bab39a80f679 /lib/psf.c | |
| download | jove-kernel-8251da342161767fe203627223ccd4a7026701c6.tar.gz jove-kernel-8251da342161767fe203627223ccd4a7026701c6.tar.bz2 jove-kernel-8251da342161767fe203627223ccd4a7026701c6.zip | |
initial commit. working on tasking
Diffstat (limited to 'lib/psf.c')
| -rw-r--r-- | lib/psf.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/psf.c b/lib/psf.c new file mode 100644 index 0000000..407420e --- /dev/null +++ b/lib/psf.c @@ -0,0 +1,8 @@ +#include "psf.h" + +uint8_t* +psf_glyph(struct psf1_header *header, uint8_t glyph) +{ + uint8_t *glyph_bitmap = header->bitmap; + return &glyph_bitmap[(size_t)glyph * header->char_height]; +} |
