From 50b5427a8edbb8d59215334f5a250e7f8d6d7ca7 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 11 Mar 2015 19:18:59 +0100 Subject: Add keyboard handling code. New font thanks to Muazzam from OSDev! --- src/lib/libkogata/draw.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/lib/libkogata/draw.c') 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; -- cgit v1.2.3