Sender: nate AT cartsys DOT com Message-ID: <36A38DCC.A93B9488@cartsys.com> Date: Mon, 18 Jan 1999 11:38:52 -0800 From: Nate Eldredge X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.0.36 i586) MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: Polygon scan problem References: <77tsdv$6mk$1 AT news7 DOT svr DOT pol DOT co DOT uk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com Michael Stewart wrote: > > I have been having an annoying problem whilst writing a scan convertor. > Hopefully someone will be able to see what I am doing wrong. > > The problem I have been having concerns the accuracy of fixed point values. > The routine works as it should while using doubles, however when converting > to fixed point values I loose an enormous amount of accuracy, to much to be > accounted for by the accuracy of a 16.16 fixed point value. > > I have tried using Allegros fixed point routines instead of my own and I get > the exactly the same problem. Can anyone see what I am doing wrong ? Conversions between integer and `fixed' need to call the appropriate routine (`itofix' or `fixtoi'). -- Nate Eldredge nate AT cartsys DOT com