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

Re: [pygame] coordinates overflow



On Sat, 2006-01-21 at 19:04 +0100, Ivo Danihelka wrote:
> I've discovered that pygame behaves weird when I'm drawing with large
> coordinates. For example, the object at position [262144, 300] is
> displayed as at [0, 300]. The same is true for negative position
> [-262144, 300].

The SDL library uses 16bit shorts to store coordinates. You are likely
running into this limit.