From 893694168d8b943505ff30bd4db57ac8aaef6fef Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Mon, 9 Feb 2015 21:00:38 -0500 Subject: optimization --- drivers/include/gfx.h | 10 ++++++++-- drivers/include/tty.h | 4 ++-- 2 files changed, 10 insertions(+), 4 deletions(-) (limited to 'drivers/include') diff --git a/drivers/include/gfx.h b/drivers/include/gfx.h index 561eb3e..50b84dc 100644 --- a/drivers/include/gfx.h +++ b/drivers/include/gfx.h @@ -36,9 +36,13 @@ bool gfx_init(struct vbe_info_t *vbe_mode_info); void gfx_drawpixel(int x, int y); -void gfx_drawchar(int x, int y, char ch); +/* transparent background */ +void gfx_drawchar(int x, int y, int ch); -void gfx_putchar(char ch); +/* fills the background with bgcolor */ +void gfx_drawchar_bg(int x, int y, int ch); + +void gfx_putchar(int ch); void gfx_puts(const char* str); @@ -60,6 +64,8 @@ void gfx_vline(int y1, int y2, int x); void gfx_fillrect(int x1, int y1, int w, int h); +void gfx_drawline(int x1, int y1, int x2, int y2); + extern const uint16_t *gfx_width, *gfx_height; /* this is _BYTES_ per pixel, NOT BITS per pixel! */ diff --git a/drivers/include/tty.h b/drivers/include/tty.h index 0e142c6..4748d81 100644 --- a/drivers/include/tty.h +++ b/drivers/include/tty.h @@ -4,6 +4,6 @@ void tty_init(void); void tty_clear(void); void tty_set_color(uint8_t); uint8_t tty_get_color(void); -void tty_putchar_at(char ch, uint8_t color, int x, int y); -void tty_putchar(char ch); +void tty_putchar_at(int ch, uint8_t color, int x, int y); +void tty_putchar(int ch); void tty_puts(const char*); -- cgit v1.1