projects
/
oftp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
progress
[oftp]
/
src
/
dos
/
tgfx.c
diff --git
a/src/dos/tgfx.c
b/src/dos/tgfx.c
index
9818286
..
c983835
100644
(file)
--- 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;
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);
va_start(ap, fmt);
- vsprintf(buf, fmt, ap);
+ tg_vtext(x, y, fmt, ap);
va_end(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) {
ptr = buf;
while(*ptr) {