Stefano Ceccherini wrote: > 2007/6/14, Marcus Overhagen <marcusoverhagen@xxxxxxxx>: > > jackburton at BerliOS wrote: > > > > > + particle_list[i].timeval = random() & 64; > > This gives you just a single bit. Is this wanted? > > > > > + if((xCoord > 0) && (yCoord > 0) && (xCoord < width) && (yCoord < > height)) > > > + set_pixel(xCoord,yCoord,color); > > Checks like this one can possibly be speed up by casting the variables to > unsigned: > > > > if (unsigned(xCoord) < width && unsigned(yCoord) < height) > > > > Finally, please look into the > http://haiku-os.org/documents/dev/haiku_coding_guidelines > > > > have fun > > > > Marcus > > > > Thank you Marcus, but I know the haiku coding guidelines well enough. > I simply didn't write this code and currently I didn't feel like > cleaning it up all to follow our guidelines. Appearantly you didn't feel like crediting the original author and including the licensing information, too. Don't you agree that this needs to be added? I assumed this was your code. Marcus Viel oder wenig? Schnell oder langsam? Unbegrenzt surfen + telefonieren ohne Zeit- und Volumenbegrenzung? DAS TOP ANGEBOT JETZT bei Arcor: günstig und schnell mit DSL - das All-Inclusive-Paket für clevere Doppel-Sparer, nur 39,85 ? inkl. DSL- und ISDN-Grundgebühr! http://www.arcor.de/rd/emf-dsl-2