X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fsubstrate.c;h=ce9c696b466835212fcfb9fd715b0c1b8948d07b;hp=82c2bacd483b58c68703919e4aa047624a7b138b;hb=50be9bb40dc60130c99ffa568e6677779904ff70;hpb=5f1f12f2a37da634000f96d18d59cc73a8814ef7 diff --git a/hacks/substrate.c b/hacks/substrate.c index 82c2bacd..ce9c696b 100644 --- a/hacks/substrate.c +++ b/hacks/substrate.c @@ -318,7 +318,6 @@ static inline unsigned long rgb2point(int depth, int r, int g, int b) switch(depth) { case 32: - ret = 0xff000000; case 24: #ifdef HAVE_COCOA /* This program idiotically does not go through a color map, so @@ -494,16 +493,11 @@ movedrawcrack(struct state *st, GC fgc, struct field *f, int cracknum) cr->y += ((float) STEP * sin(cr->t * M_PI/180)); } else { - float oldx, oldy; - - oldx = cr->x; - oldy = cr->y; - cr->x += ((float) cr->ys * cos(cr->t * M_PI/180)); cr->y += ((float) cr->ys * sin(cr->t * M_PI/180)); cr->x += ((float) cr->xs * cos(cr->t * M_PI/180 - M_PI / 2)); - cr->x += ((float) cr->xs * sin(cr->t * M_PI/180 - M_PI / 2)); + cr->y += ((float) cr->xs * sin(cr->t * M_PI/180 - M_PI / 2)); cr->t += cr->t_inc; cr->degrees_drawn += abs(cr->t_inc);