projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add missing new _glx files
[freeglut]
/
progs
/
demos
/
Lorenz
/
lorenz.c
diff --git
a/progs/demos/Lorenz/lorenz.c
b/progs/demos/Lorenz/lorenz.c
index
366c7e4
..
6a816b2
100644
(file)
--- a/
progs/demos/Lorenz/lorenz.c
+++ b/
progs/demos/Lorenz/lorenz.c
@@
-249,7
+249,11
@@
void bitmapPrintf (const char *fmt, ...)
va_list args;
va_start(args, fmt);
va_list args;
va_start(args, fmt);
+#if defined(WIN32) && !defined(__CYGWIN__)
+ (void) _vsnprintf (buf, sizeof(buf), fmt, args);
+#else
(void) vsnprintf (buf, sizeof(buf), fmt, args);
(void) vsnprintf (buf, sizeof(buf), fmt, args);
+#endif
va_end(args);
glutBitmapString ( GLUT_BITMAP_HELVETICA_12, (unsigned char*)buf ) ;
}
va_end(args);
glutBitmapString ( GLUT_BITMAP_HELVETICA_12, (unsigned char*)buf ) ;
}