ftp://ftp.krokus.ru/pub/OpenBSD/distfiles/xscreensaver-4.22.tar.gz
[xscreensaver] / hacks / glx / polyhedra-gl.c
index b693a55d1b5145fbd79c817a86910c740c4a3c62..12b1c246c51667fc1e8a794b3306841a8f34376b 100644 (file)
@@ -37,11 +37,6 @@ extern XtAppContext app;
 #define DEFAULTS       "*delay:        30000         \n" \
                        "*showFPS:      False         \n" \
                        "*wireframe:    False         \n" \
-                       "*speed:      " DEF_SPEED    "\n" \
-                       "*spin:       " DEF_SPIN     "\n" \
-                       "*wander:     " DEF_WANDER   "\n" \
-                       "*duration:   " DEF_DURATION "\n" \
-                       "*which:      " DEF_WHICH    "\n" \
                        "*titleFont:  -*-times-bold-r-normal-*-180-*\n" \
                        "*titleFont2: -*-times-bold-r-normal-*-120-*\n" \
                        "*titleFont3: -*-times-bold-r-normal-*-80-*\n"  \
@@ -133,7 +128,7 @@ static void
 kludge_normal (int n, const int *indices, const point *points)
 {
   XYZ normal = { 0, 0, 0 };
-  XYZ p;
+  XYZ p = { 0, 0, 0 };
   int i;
 
   for (i = 0; i < n; ++i) {
@@ -374,6 +369,9 @@ new_polyhedron (ModeInfo *mi)
 
   new_label (mi);
 
+  if (wire)
+    glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
+
   glNewList (bp->object_list, GL_COMPILE);
   for (i = 0; i < p->nfaces; i++)
     {