X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ftinyfps.c;h=269c965448c9f7d671aa145b78efdc4f2fe2dfaf;hb=23c14b0ba8bac4d39824ae1d848be3058e9f9073;hp=d7d1f80a0730b775c0a86f02ffdebbe6dafd7962;hpb=637ca39c29b03bd3a2beb99521753e83c043283f;p=dosdemo diff --git a/src/tinyfps.c b/src/tinyfps.c index d7d1f80..269c965 100644 --- a/src/tinyfps.c +++ b/src/tinyfps.c @@ -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