ftp://ftp.linux.ncsu.edu/mirror/ftp.redhat.com/pub/redhat/linux/enterprise/4/en/os...
[xscreensaver] / hacks / glx / mirrorblob.c
index 2ff5666a9ac1a8c4d33be1f298ece30146639c25..61250cc03be64bbb5cf3fa90ebb9a6571d88b52c 100644 (file)
 #include <stdlib.h>
 #include <sys/time.h>
 
-/*-
- * due to a Bug/feature in VMS X11/Intrinsic.h has to be placed before xlock.
- * otherwise caddr_t is not defined correctly
- */
-
-#include <X11/Intrinsic.h>
-
 #ifdef STANDALONE
 # define PROGCLASS         "Screensaver"
 # define HACK_INIT         init_screensaver
@@ -1055,10 +1048,10 @@ draw_blob (void)
                 glArrayElement(index3);
                 glEnd();
 
-                lower = floorf((x - 0.5) * row_data[y - 1].num_x_points
-                               / (float)row_data[y].num_x_points);
-                upper = floorf((x + 0.5) * row_data[y - 1].num_x_points
-                               / (float)row_data[y].num_x_points);
+                lower = ((x - 0.5) * row_data[y - 1].num_x_points
+                         / (float)row_data[y].num_x_points);
+                upper = ((x + 0.5) * row_data[y - 1].num_x_points
+                         / (float)row_data[y].num_x_points);
 
                 if (upper > lower)
                 {