kne / pybox2d-from-googlecode

Automatically exported from code.google.com/p/pybox2d
Other
0 stars 0 forks source link

Error in pygame_main.py #44

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
1.Don't work testbet
2. Error in pygame_main.py

pybox2d 2.0.2b2
Ubuntu 11.04 64X

In pygame_main.py, line 273.

Replace:

return ((pt[0] * self.viewZoom) - self.viewOffset.x, self.height - ((pt[1] * 
self.viewZoom) - self.viewOffset.y))

on

return (int((pt[0] * self.viewZoom) - self.viewOffset.x), int(self.height - 
((pt[1] * self.viewZoom) - self.viewOffset.y)))

Original issue reported on code.google.com by alexande...@gmail.com on 16 Aug 2011 at 1:10

Attachments:

GoogleCodeExporter commented 9 years ago
I assume this is because of some newer version of pygame? Previously, it would 
only print out a deprecation warning for non-integral positions/sizes.

What is the error this should fix? Also, if related, what are your 
pygame/python versions?

Thanks.

Original comment by sir...@gmail.com on 19 Aug 2011 at 8:02