projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://www.jwz.org/xscreensaver/xscreensaver-5.12.tar.gz
[xscreensaver]
/
hacks
/
fps.c
diff --git
a/hacks/fps.c
b/hacks/fps.c
index 2e1ba3f715a2f4125c5564c85ece9d2b4fc3a744..2164fcfe8d3705f8d78903429008d830bc164373 100644
(file)
--- a/
hacks/fps.c
+++ b/
hacks/fps.c
@@
-23,7
+23,6
@@
fps_init (Display *dpy, Window window)
fps_state *st;
const char *font;
XFontStruct *f;
fps_state *st;
const char *font;
XFontStruct *f;
- int first, last;
if (! get_boolean_resource (dpy, "doFPS", "DoFPS"))
return 0;
if (! get_boolean_resource (dpy, "doFPS", "DoFPS"))
return 0;
@@
-40,9
+39,6
@@
fps_init (Display *dpy, Window window)
f = XLoadQueryFont (dpy, font);
if (!f) f = XLoadQueryFont (dpy, "fixed");
f = XLoadQueryFont (dpy, font);
if (!f) f = XLoadQueryFont (dpy, "fixed");
- first = f->min_char_or_byte2;
- last = f->max_char_or_byte2;
-
{
XWindowAttributes xgwa;
XGCValues gcv;
{
XWindowAttributes xgwa;
XGCValues gcv;
@@
-219,7
+215,6
@@
fps_draw (fps_state *st)
if (st->clear_p)
{
int w, h;
if (st->clear_p)
{
int w, h;
- int lh = st->font->ascent + st->font->descent;
w = string_width (st->font, string, &h);
XFillRectangle (st->dpy, st->window, st->erase_gc,
x - st->font->descent,
w = string_width (st->font, string, &h);
XFillRectangle (st->dpy, st->window, st->erase_gc,
x - st->font->descent,