removed clang-format and clang_complete files from the repo
[dosdemo] / src / tinyfps.c
index d7d1f80..269c965 100644 (file)
@@ -4,9 +4,10 @@
 #include "tinyfps.h"
 #include "demo.h"
 
-/* TinyFPS, just a minimal fraps like font to show FPS during the demo and not just after.
- * I'll be using it in my effects for my performance test purposes, just adding it here.
- * Maybe it would be nice if initFpsFonts would be called in demo.c once but I avoided touching that code.
+/* TinyFPS, just a minimal fraps like font to show FPS during the demo and not
+ * just after.  I'll be using it in my effects for my performance test
+ * purposes, just adding it here.  Maybe it would be nice if initFpsFonts would
+ * be called in demo.c once but I avoided touching that code.
  */
 
 /*
@@ -71,7 +72,7 @@ static void drawFont(unsigned char decimal, int posX, int posY, unsigned char zo
 
     unsigned short *fontData = (unsigned short*)&miniDecimalFonts[decimal * FPS_FONT_WIDTH * FPS_FONT_HEIGHT];
 
-       vram += posY * fb_width + posX;
+       vram += posY * FB_WIDTH + posX;
 
        if (zoom < 1) zoom = 1;
        if (zoom > 4) zoom = 4;
@@ -88,13 +89,13 @@ static void drawFont(unsigned char decimal, int posX, int posY, unsigned char zo
                 {
                     for (k=0; k<zoom; k++)
                     {
-                        *(vram + j * fb_width + k) ^= c;
+                        *(vram + j * FB_WIDTH + k) ^= c;
                     }
                 }
             }
             vram += zoom;
         }
-        vram += (-FPS_FONT_WIDTH * zoom + fb_width * zoom);
+        vram += (-FPS_FONT_WIDTH * zoom + FB_WIDTH * zoom);
     }
 }
 
@@ -126,5 +127,5 @@ void drawFps(unsigned short *vram)
        }
        /*drawDecimal(fps, 4, 4, 2, vram);*/
        /* Moving this on the lower left side of screen for now, since the lack of double buffering generates flickering for this atm */
-       drawDecimal(fps, 4, fb_height - 12, 2, vram);
+       drawDecimal(fps, 4, FB_HEIGHT - 12, 2, vram);
 }