X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=src%2Ftinyfps.c;h=41102e680461058a5233ceaea00c44f77291ffd5;hp=83e010f7cf11a9aebd9da9eccb6f6c62e9fcca26;hb=e8b26db00c934d141f16652cb8dcbeae23b17e48;hpb=ea62e857029bdebd88b35beea372c144382400b9 diff --git a/src/tinyfps.c b/src/tinyfps.c index 83e010f..41102e6 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. + */ /* 1110 0010 1110 1110 1010 1110 1110 1110 1110 1110 @@ -70,7 +71,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; @@ -87,13 +88,13 @@ static void drawFont(unsigned char decimal, int posX, int posY, unsigned char zo { for (k=0; k