X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Ffps.c;h=2ba56d40e62e57564e2b3cdd5f88585e8bd56968;hp=2b91bbfeb40f734e23e1980ee2c1a9546261e4e7;hb=13dbc569cdc6e29019722c0ef9b932a925efbcad;hpb=3f9592851ce4ed76a9979bfdd6ec7dc5c457e183 diff --git a/hacks/glx/fps.c b/hacks/glx/fps.c index 2b91bbfe..2ba56d40 100644 --- a/hacks/glx/fps.c +++ b/hacks/glx/fps.c @@ -153,7 +153,7 @@ fps_print_string (ModeInfo *mi, GLfloat x, GLfloat y, const char *string) L2++; glCallLists (strlen(L2), GL_UNSIGNED_BYTE, L2); glRasterPos2f (x, y + (fps_ascent + fps_descent)); - glCallLists (L2 - string, GL_UNSIGNED_BYTE, string); + glCallLists (L2 - string - 1, GL_UNSIGNED_BYTE, string); } else { @@ -249,13 +249,13 @@ do_fps (ModeInfo *mi) strcat (msg, "\nPolys: "); if (p >= 1000000) - sprintf (msg + strlen(msg), "%d,%03d,%03d%s", + sprintf (msg + strlen(msg), "%lu,%03lu,%03lu%s", (p / 1000000), ((p / 1000) % 1000), (p % 1000), s); else if (p >= 1000) - sprintf (msg + strlen(msg), "%d,%03d%s", + sprintf (msg + strlen(msg), "%lu,%03lu%s", (p / 1000), (p % 1000), s); else - sprintf (msg + strlen(msg), "%d%s", p, s); + sprintf (msg + strlen(msg), "%lu%s", p, s); } }