tkacik@rphroy.UUCP (Tom Tkacik) (10/20/89)
Sorry about that folks. I made a change at the last minute in the moire program without making sure that it was correct. A piece of code ended up in the wrong place. So here is the patch. Tom Tkacik kyzyl!tkacik ######################################### *** moire.c~ Wed Oct 18 22:23:40 1989 --- moire.c Thu Oct 19 19:07:07 1989 *************** *** 307,323 xmax = lines[i].x2; ymax = lines[i].y2; - /* make sure that min really is smaller than max */ - - if(xmin > xmax) { - xmin = xmax; - xmax = lines[i].x1; - } - if(ymin > ymax) { - ymin = ymax; - ymax = lines[i].y1; - } - /* find the center of the cross or circle */ xmean = (xmin + xmax) / 2; --- 307,312 ----- xmax = lines[i].x2; ymax = lines[i].y2; /* find the center of the cross or circle */ xmean = (xmin + xmax) / 2; *************** *** 343,348 line(xmin, ymin, xmean, ymax); line(xmean, ymax, xmax, ymin); break; } /* is the line still visible -- the screen may now be smaller */ --- 332,348 ----- line(xmin, ymin, xmean, ymax); line(xmean, ymax, xmax, ymin); break; + } + + /* make sure that min really is smaller than max */ + + if(xmin > xmax) { + xmin = xmax; + xmax = lines[i].x1; + } + if(ymin > ymax) { + ymin = ymax; + ymax = lines[i].y1; } /* is the line still visible -- the screen may now be smaller */ -- Tom Tkacik GM Research Labs, Warren MI 48090 uunet!edsews!rphroy!megatron!tkacik Work Ph: (313)986-1442 "If you can't stand the bugs, stay out of the roach-motel." Ron Guilmette