From: "Silvio Darzo" Newsgroups: comp.os.msdos.djgpp Subject: Re: ALLEGRO: help with ARC Date: Tue, 25 Feb 2003 09:50:21 +0000 (UTC) Organization: Mailgate.ORG Server - http://www.Mailgate.ORG Lines: 45 Message-ID: References: <8d3750b48cafc870dd036fac3f43e856 DOT 113557 AT mygate DOT mailgate DOT org> NNTP-Posting-Host: host227-148.pool217223.interbusiness.it Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.mailgate.org 1046146155 11993 217.223.148.227 (Tue Feb 25 10:50:21 2003) X-Complaints-To: abuse AT mailgate DOT org NNTP-Posting-Date: Tue, 25 Feb 2003 09:50:21 +0000 (UTC) Injector-Info: news.mailgate.org; posting-host=host227-148.pool217223.interbusiness.it; posting-account=113557; posting-date=1046146155 User-Agent: Mailgate Web Server X-URL: http://mygate.mailgate.org/mynews/comp/comp.os.msdos.djgpp/f0b8d984dfae606d854c3ff1e4f26202.113557%40mygate.mailgate.org To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > > The start angle, ang1 is 30, this is a twelth of a circle. > a twelth of 256 is 21.3 recurring > > the end angle is 300 this is 5/6 of a circle and 5/6 > of 256 is 213.3 recurring > > So, I would say that ang1 should be 21.333 > and ang2 should be 213.333 > > Never used the arc() function myself, but this feels about right > > Kev. I thought it was light that but the problem are 16.16 fixed point numbers. I now found out functions like int fixtoi(fixed x); converting an integer to a fixed and it works fine try this: arc(screen,x+10,y+10,itofix(64),itofix(128),10,col); arc(screen,x+10,y+h-10,itofix(128),itofix(192),10,col); arc(screen,x+w-10,y+10,itofix(0),itofix(64),10,col); arc(screen,x+w-10,y+h-10,itofix(192),itofix(256),10,col); hline(screen,x+10,y,x+w-10,col); hline(screen,x+10,y+h,x+w-10,col); vline(screen,x,y+10,y+h-10,col); vline(screen,x+w,y+10,y+h-10,col); byebye helen -- Posted via Mailgate.ORG Server - http://www.Mailgate.ORG