http://ftp.x.org/contrib/applications/xscreensaver-3.22.tar.gz
[xscreensaver] / hacks / glx / glplanet.c
index 7c71fc7d135c75e015801c462e70df6e16851c29..d20bb409ca8eba6f251b3c4e5aa5f5a715ecb366 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 */
 
@@ -424,8 +424,8 @@ void generate_stars(int width, int height)
        {
 /*       size = (drand48()+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();