diff options
Diffstat (limited to 'source/framebuffer.c')
-rw-r--r-- | source/framebuffer.c | 15 |
1 files changed, 15 insertions, 0 deletions
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 <nds.h> +#include <stdio.h> +#include <stdarg.h> #include <string.h> /* ---------------------------------------- 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; |