X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fdos%2Ftgfx.c;fp=src%2Fdos%2Ftgfx.c;h=c98383525b4a6e4593acd481fc3041ae961ce0dd;hb=2f4fb7c15c5017546238241ea318b16b9a032c52;hp=98182860319bb7b8318801a1c044c176361c7722;hpb=8091cf11d15e1363d8d608fb640f4f12b0887e52;p=oftp diff --git a/src/dos/tgfx.c b/src/dos/tgfx.c index 9818286..c983835 100644 --- a/src/dos/tgfx.c +++ b/src/dos/tgfx.c @@ -56,12 +56,18 @@ void tg_setcursor(int x, int y) void tg_text(int x, int y, const char *fmt, ...) { va_list ap; - char buf[128], *ptr; - unsigned short *fbptr = framebuf + y * 80 + x; va_start(ap, fmt); - vsprintf(buf, fmt, ap); + tg_vtext(x, y, fmt, ap); va_end(ap); +} + +void tg_vtext(int x, int y, const char *fmt, va_list ap) +{ + char buf[256], *ptr; + unsigned short *fbptr = framebuf + y * 80 + x; + + vsprintf(buf, fmt, ap); ptr = buf; while(*ptr) {