[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] BUG: floating point exception in pygame.transform.average_color



Hi,

When trying to determine the average color of a surface inside a
rectangle which is located just outside the visible region, python
crashes with a floating point exception. A silly thing to do, but I
think that pygame should tell me I'm silly (-: Attached is a minimal
script which triggers the bug.

I am running debian wheezy, python 2.7.3-6 and pygame
1.9.1release+dfsg-8. If you need more info, please let me know.

Kind regards,

Joost van Zwieten

Attachment: average_color_bug.py
Description: Binary data