Render all sprites that intersect the repaint bounds, not just the ones

that are contained within the bounds.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1081 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-02-28 23:25:15 +00:00
parent d3e5912ef5
commit 3dbf935e3a
@@ -1,5 +1,5 @@
//
// $Id: SpriteManager.java,v 1.25 2002/02/21 06:01:29 mdb Exp $
// $Id: SpriteManager.java,v 1.26 2002/02/28 23:25:15 mdb Exp $
package com.threerings.media.sprite;
@@ -169,7 +169,7 @@ public class SpriteManager
int size = _sprites.size();
for (int ii = 0; ii < size; ii++) {
Sprite sprite = (Sprite)_sprites.get(ii);
if (sprite.inside(bounds)) {
if (sprite.intersects(bounds)) {
sprite.paint(gfx);
}
}