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
/
glx
/
gltext.c
diff --git
a/hacks/glx/gltext.c
b/hacks/glx/gltext.c
index 48ab1c07a2c51dbf0f9d19f49bdc6cc6e26106aa..314a4ee622e3f385ef31432863756b251af547e3 100644
(file)
--- a/
hacks/glx/gltext.c
+++ b/
hacks/glx/gltext.c
@@
-356,8
+356,6
@@
init_text (ModeInfo *mi)
fprintf(stderr, "%s: out of memory\n", progname);
exit(1);
}
fprintf(stderr, "%s: out of memory\n", progname);
exit(1);
}
-
- tp = &tps[MI_SCREEN(mi)];
}
tp = &tps[MI_SCREEN(mi)];
}
tp = &tps[MI_SCREEN(mi)];
@@
-508,10
+506,9
@@
fill_string (const char *string, Bool wire)
int line_height = GLUT_FONT->top - GLUT_FONT->bottom;
int off;
GLfloat x = 0, y = 0;
int line_height = GLUT_FONT->top - GLUT_FONT->bottom;
int off;
GLfloat x = 0, y = 0;
- int lines;
int ow, oh;
int ow, oh;
-
lines =
text_extents (string, &ow, &oh);
+ text_extents (string, &ow, &oh);
y = oh / 2 - line_height;
y = oh / 2 - line_height;