http://ftp.x.org/contrib/applications/xscreensaver-3.23.tar.gz
[xscreensaver] / hacks / glx / glplanet.c
index 7c71fc7d135c75e015801c462e70df6e16851c29..f7d02557b4f6c1ae96cc6eae9182ae23fcd6d3f6 100644 (file)
@@ -323,7 +323,7 @@ setup_file_texture (ModeInfo *mi, char *filename)
                exit (1);
          }
 
-       setup_xbm_texture (data, width, height, &gp->fg, &gp->bg);
+       setup_xbm_texture ((char *) data, width, height, &gp->fg, &gp->bg);
   }
 #else  /* !XMU */
 
@@ -422,10 +422,10 @@ void generate_stars(int width, int height)
   glBegin(GL_POINTS);
   for(i = 0 ; i < NUM_STARS ; i++)
        {
-/*       size = (drand48()+size_range[0]) * size_range[1]/2.; */
+/*       size = ((random()%size_range[0])) * size_range[1]/2.; */
 /*    glPointSize(size); */
-         x = drand48()*width;
-         y = drand48()*height;
+         x = random() % width;
+         y = random() % height;
          glVertex2f(x,y);
        }
   glEnd();