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.16.tar.gz
[xscreensaver]
/
hacks
/
fps.c
diff --git
a/hacks/fps.c
b/hacks/fps.c
index 8a63ccff7fbabdd119fda1b0c55697d3f9c808e0..1cd39271f1f123cd03c94fa640aa44bf887b5167 100644
(file)
--- a/
hacks/fps.c
+++ b/
hacks/fps.c
@@
-56,7
+56,8
@@
fps_init (Display *dpy, Window window)
st->x = 10;
st->y = 10;
if (get_boolean_resource (dpy, "fpsTop", "FPSTop"))
st->x = 10;
st->y = 10;
if (get_boolean_resource (dpy, "fpsTop", "FPSTop"))
- st->y = - (st->font->ascent + st->font->descent + 10);
+ /* don't leave a blank line in GL top-fps. */
+ st->y = - (/*st->font->ascent +*/ st->font->descent + 10);
strcpy (st->string, "FPS: ... ");
strcpy (st->string, "FPS: ... ");
@@
-198,7
+199,7
@@
string_width (XFontStruct *f, const char *c, int *height_ret)
}
}
-/* This function is used only in Xlib mode. For GL mode, see glx/fps-gl
x
.c.
+/* This function is used only in Xlib mode. For GL mode, see glx/fps-gl.c.
*/
void
fps_draw (fps_state *st)
*/
void
fps_draw (fps_state *st)