From b369f37c6244b5d56742b56f745219fb2544efe2 Mon Sep 17 00:00:00 2001 From: Ian C Date: Fri, 16 Feb 2007 01:10:41 +0000 Subject: Some hi-res support. Added new config page and averaging touchscreen reads. In process of writing file selector. --- source/framebuffer.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'source/framebuffer.c') diff --git a/source/framebuffer.c b/source/framebuffer.c index ef66235..691862e 100644 --- a/source/framebuffer.c +++ b/source/framebuffer.c @@ -21,6 +21,8 @@ */ #include +#include +#include #include /* ---------------------------------------- STATIC DATA @@ -183,6 +185,19 @@ void FB_Centre(const char *text, int y, int colour, int paper) } +void FB_printf(int x, int y, int colour, int paper, const char *format, ...) +{ + char buff[80]; + va_list va; + + va_start(va,format); + vsnprintf(buff,sizeof buff,format,va); + va_end(va); + + FB_Print(buff,x,y,colour,paper); +} + + void FB_HLine(int x1, int x2, int y, int colour) { uint16 *line; -- cgit v1.2.3