shitala099 / microemu

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

Bugfix for Sprite pixel level collision detection #17

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
There is a bug in Sprite's pixel level collision detection, which causes
the getRGB method to sometimes throw an IllegalArgumentException or return
the wrong values. The problem only appears on Sprites with multiple frames
when the number of columns does not match the number of rows (for example a
1x3 or 3x2 image).

The fix is small, just requiring switching the 'rows' variable with 'cols'
in two places.

Original issue reported on code.google.com by bar...@gmail.com on 18 Nov 2009 at 11:55

Attachments:

GoogleCodeExporter commented 8 years ago
Fixed in trunk (future 3.0 version)

Original comment by bar...@gmail.com on 8 Jan 2010 at 11:48