diff options
author | Alex Auvolat <alex@adnab.me> | 2015-03-11 19:18:59 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2015-03-11 19:18:59 +0100 |
commit | 50b5427a8edbb8d59215334f5a250e7f8d6d7ca7 (patch) | |
tree | 7263505b2a6145256ce1f494108a4ceb853c4de0 /src/lib/libkogata/draw.c | |
parent | 0b76aff59b586d87ee0449bc7deda878f4633515 (diff) | |
download | kogata-50b5427a8edbb8d59215334f5a250e7f8d6d7ca7.tar.gz kogata-50b5427a8edbb8d59215334f5a250e7f8d6d7ca7.zip |
Add keyboard handling code. New font thanks to Muazzam from OSDev!
Diffstat (limited to 'src/lib/libkogata/draw.c')
-rw-r--r-- | src/lib/libkogata/draw.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/lib/libkogata/draw.c b/src/lib/libkogata/draw.c index 911fe0d..b9ef9bc 100644 --- a/src/lib/libkogata/draw.c +++ b/src/lib/libkogata/draw.c @@ -239,13 +239,11 @@ font_t *g_load_ascii_bitmap_font(fd_t f) { if (font == 0) goto error; memset(font, 0, sizeof(font_t)); - font->type = FONT_ASCII_BITMAP; font->ascii_bitmap.cw = h.cw; font->ascii_bitmap.ch = h.ch; font->ascii_bitmap.nchars = h.nchars; - font->ascii_bitmap.data = (uint8_t*)malloc(h.ch * h.nchars); if (font->ascii_bitmap.data == 0) goto error; |