From: Jeff Weeks Newsgroups: comp.graphics.algorithms,comp.os.msdos.djgpp Subject: Clipping a line to a rect. Need help _fast_! Date: Fri, 13 Feb 1998 06:13:33 -0500 Organization: Code X Software Lines: 26 Message-ID: <34E42ADD.1E6B43F3@codex.nu> NNTP-Posting-Host: snel.execulink.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hello all, I'm in the process of adding clipping to all my graphics functions to a library which should have been released weeks ago :( I've hit a wall though; For some reason I can't seem to clip a line to a rectangle! My code _almost_ worked, then I tried to fix it, and now it doesn't work at all! To add to that, my web redirection seems to be screwed up... but that's another story. So, if anybody has some code on how to clip any line, to be constrained withen a rectangular area, PLEASE send it my way. I'm running out of time, and I'd be VERY greatful. Thanks, Jeff PS: Please reply via email if possible. -------------------------------------------- - Code X Software - Programming to a Higher Power email: mailto:info AT codex DOT nu web: http://www.codex.nu/ --------------------------------------------