[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: [pygame] Cirle's clipping bug?



Title: AW: [pygame] Cirle's clipping bug?

I can't reproduce it either on Win2000 pygame 1.2.

D´irk

-----Ursprüngliche Nachricht-----
Von: Frank Raiser [mailto:crashchaos@gmx.net]
Gesendet: Montag, 17. September 2001 20:23
An: pygame-users@seul.org
Betreff: Re: [pygame] Cirle's clipping bug?


On Mon, Sep 17, 2001 at 04:08:14PM +0200, Ludek Smid wrote:
> this piece of code crashes Pygame (release 1.2, WinNT). When you uncomment
> marked line, crash no longer occurs. I guess, there is problem with
> clipping. If you change width of circle to other value than 0 then
> everything will be ok.

Can't reproduce this on RedHat7.1 running pygame 1.2. Normal behavior
independent from the marked line. No crash. Also for other circle widths
no problems (for width <= radius of course)
 
> And one more tip - try to set radius of circle to a lower value than width
> of the circle or event to a negative value. (Change xrange's first
> parameter to 0, -1, ..) :-)
Fatal Python error: (pygame parachute) Floating Point Exception
Aborted
Occuring for width > radius only.
This is a small bug but shouldn't cause too many problems as you would usually
draw a circle with a bigger radius and width 0 to fill it (because that's what
a circle with width > radius should look like)

@Pete: this might be solvable by checking for width > radius and internally
  setting width to 0 and radius to the original radius + original width

--
Raiser, Frank aka CrashChaos
IRC: 141.30.225.9:6667 #United-Programmers

'The good thing about the internet is that all human
 life is there. But when you are searching for something
 specific online, you soon  realise that the bad thing
 about the internet is that all human life is there.'
____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org