X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fmirrorblob.c;h=61250cc03be64bbb5cf3fa90ebb9a6571d88b52c;hp=2ff5666a9ac1a8c4d33be1f298ece30146639c25;hb=ffd8c0873576a9e3065696a624dce6b766b77062;hpb=e4fa2ac140f7bc56571373a7b7eb585fa4500e38 diff --git a/hacks/glx/mirrorblob.c b/hacks/glx/mirrorblob.c index 2ff5666a..61250cc0 100644 --- a/hacks/glx/mirrorblob.c +++ b/hacks/glx/mirrorblob.c @@ -36,13 +36,6 @@ #include #include -/*- - * due to a Bug/feature in VMS X11/Intrinsic.h has to be placed before xlock. - * otherwise caddr_t is not defined correctly - */ - -#include - #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) {