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.35.tar.gz
[xscreensaver]
/
hacks
/
glx
/
fps-gl.c
diff --git
a/hacks/glx/fps-gl.c
b/hacks/glx/fps-gl.c
index 6020b257ea59e3ca3cec8c2e02264a27fdc6da75..eb6b6de5fbe4fdfb92ea7c623c7474338cbc3dfd 100644
(file)
--- a/
hacks/glx/fps-gl.c
+++ b/
hacks/glx/fps-gl.c
@@
-84,16
+84,11
@@
xlockmore_gl_draw_fps (ModeInfo *mi)
XWindowAttributes xgwa;
int lines = 1;
const char *s;
XWindowAttributes xgwa;
int lines = 1;
const char *s;
- int y = st->y;
XGetWindowAttributes (st->dpy, st->window, &xgwa);
for (s = st->string; *s; s++)
if (*s == '\n') lines++;
XGetWindowAttributes (st->dpy, st->window, &xgwa);
for (s = st->string; *s; s++)
if (*s == '\n') lines++;
- if (y < 0)
- y = xgwa.height + y - (lines * data->line_height);
- y += lines * data->line_height;
-
glColor3f (1, 1, 1);
print_texture_label (st->dpy, data->texfont,
xgwa.width, xgwa.height,
glColor3f (1, 1, 1);
print_texture_label (st->dpy, data->texfont,
xgwa.width, xgwa.height,