moved the drawFps call to the backends so it works automatically for
[dosdemo] / src / bump.c
index 104b127..a6f7aad 100644 (file)
@@ -7,7 +7,6 @@
 
 #include "demo.h"
 #include "screen.h"
-#include "tinyfps.h"
 
 static int init(void);
 static void destroy(void);
@@ -60,7 +59,6 @@ static int init(void)
        const float rgbMul[9] = { 1.0f, 0.0f, 0.0f, 
                                                                  0.0f, 1.0f, 0.0f,
                                                                  0.0f, 0.0f, 1.0f};
-       initFpsFonts();
 
        heightmap = malloc(sizeof(*heightmap) * fb_size);
        lightmap = malloc(sizeof(*lightmap) * fb_size);
@@ -265,7 +263,5 @@ static void draw(void)
        renderLights();
        renderBump((unsigned short*)vmem_back);
 
-       drawFps((unsigned short*)vmem_back);
-
        swap_buffers(0);
 }