projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
From http://www.jwz.org/xscreensaver/xscreensaver-5.27.tar.gz
[xscreensaver]
/
hacks
/
fps.c
diff --git
a/hacks/fps.c
b/hacks/fps.c
index 1cd39271f1f123cd03c94fa640aa44bf887b5167..44171730461de142a3d80c6cd9528bc075f3b1c7 100644
(file)
--- 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)
{
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);
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,
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--;
string = s;
string++;
lines--;