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