http://www.jwz.org/xscreensaver/xscreensaver-5.12.tar.gz
[xscreensaver] / hacks / glx / gltext.c
index 48ab1c07a2c51dbf0f9d19f49bdc6cc6e26106aa..314a4ee622e3f385ef31432863756b251af547e3 100644 (file)
@@ -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;