X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Ffps.c;h=44171730461de142a3d80c6cd9528bc075f3b1c7;hp=1cd39271f1f123cd03c94fa640aa44bf887b5167;hb=8afc01a67be4fbf3f1cc0fce9adf01b5289a21c6;hpb=3f1091236d800c43a3124c44c7da54e53f205b13 diff --git a/hacks/fps.c b/hacks/fps.c index 1cd39271..44171730 100644 --- a/hacks/fps.c +++ b/hacks/fps.c @@ -153,7 +153,7 @@ fps_compute (fps_state *st, unsigned long polys, double depth) if (depth >= 0.0) { - int L = strlen (st->string); + unsigned long L = strlen (st->string); char *s = st->string + L; strcat (s, "\nDepth: "); sprintf (s + strlen(s), "%.1f", depth); @@ -242,7 +242,7 @@ fps_draw (fps_state *st) s = strchr (string, '\n'); if (! s) s = string + strlen(string); XDrawString (st->dpy, st->window, st->draw_gc, - x, y, string, s - string); + x, y, string, (int) (s - string)); string = s; string++; lines--;