Xref: utzoo comp.sources.d:6722 comp.sources.bugs:2881 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!lll-winken!ames!ucsd!mvb.saic.com!dayton.saic.com!ake From: ake@dayton.saic.com (Earle Ake) Newsgroups: comp.sources.d,comp.sources.bugs Subject: Re: xroach problems. Message-ID: <1991Mar29.225125.1551@dayton.saic.com> Date: 30 Mar 91 02:51:25 GMT References: <1509@culhua.prg.ox.ac.uk> <1991Mar30.021403.7505@comp.vuw.ac.nz> Organization: Science Applications Intl. Corp., Dayton, Ohio Lines: 54 In article <1991Mar30.021403.7505@comp.vuw.ac.nz>, Edmund.Stephen-Smith@comp.vuw.ac.nz (Edmund Stephen-Smith) writes: > Diff follows (ie. delete the five lines with minus signs at the front), > > Ed. > > > *** xroach.c~ Sat Mar 30 13:51:26 1991 > --- xroach.c Sat Mar 30 13:55:28 1991 > *************** > *** 407,417 **** > if (roach->intX >= 0) { > XClearArea(display, rootWin, roach->intX, roach->intY, > roach->rp->width, roach->rp->height, False); > - } > - } > - > - for (rx=0; rx - roach = &roaches[rx]; > > if (!roach->hidden) { > roach->intX = roach->x; > --- 407,412 ---- I think the patch should have been: *** xroach.c~ Sat Mar 30 13:51:26 1991 --- xroach.c Sat Mar 30 13:55:28 1991 *************** *** 407,417 **** if (roach->intX >= 0) { XClearArea(display, rootWin, roach->intX, roach->intY, roach->rp->width, roach->rp->height, False); } - } - - for (rx=0; rxhidden) { roach->intX = roach->x; --- 407,413 ---- You still need the "}" in 410 to close off the if statement above it. Earle _____________________________________________________________________________ ____ ____ ___ Earle Ake /___ /___/ / / Science Applications International Corporation ____// / / /__ Dayton, Ohio ----------------------------------------------------------------------------- Internet: ake@dayton.saic.com uucp: dayvb!ake SPAN: 28284::ake