X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fgltext.c;h=314a4ee622e3f385ef31432863756b251af547e3;hp=48ab1c07a2c51dbf0f9d19f49bdc6cc6e26106aa;hb=50be9bb40dc60130c99ffa568e6677779904ff70;hpb=5f1f12f2a37da634000f96d18d59cc73a8814ef7 diff --git a/hacks/glx/gltext.c b/hacks/glx/gltext.c index 48ab1c07..314a4ee6 100644 --- 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); } - - 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 lines; int ow, oh; - lines = text_extents (string, &ow, &oh); + text_extents (string, &ow, &oh); y = oh / 2 - line_height;