added serial spaceball support in the dos version. can be used for
[dosdemo] / src / demo.c
index 472da32..f25610a 100644 (file)
@@ -9,6 +9,7 @@
 #include "3dgfx.h"
 #include "music.h"
 #include "cfgopt.h"
+#include "tinyfps.h"
 
 int fb_width = 320;
 int fb_height = 240;
@@ -18,6 +19,8 @@ unsigned long time_msec;
 int mouse_x, mouse_y;
 unsigned int mouse_bmask;
 
+float sball_matrix[] = {1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1};
+
 static unsigned long nframes;
 
 int demo_init(int argc, char **argv)
@@ -35,6 +38,8 @@ int demo_init(int argc, char **argv)
                return -1;
        }
 
+       initFpsFonts();
+
        if(g3d_init() == -1) {
                return -1;
        }