This is breaking a little backwards compatibility but on something we're surely not using anywhere else anyway - if a scene object has already been laid out, don't do it repeatedly, which was then causing extra dirty rectangles, especially when we scrolled. The actual breakage of compatibility comes that I took out the otherIndicators argument on SceneObjectIndicator.layout, which we weren't using anyway.

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@865 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Mike Thomas
2009-11-25 19:08:12 +00:00
parent 29df8b9166
commit 0278208ef8
3 changed files with 17 additions and 10 deletions
@@ -41,8 +41,12 @@ public interface SceneObjectIndicator
/**
* Positions the indicator in the scene in relation to <code>key</code>
*/
public void layout (Graphics2D gfx, SceneObject key, Rectangle viewBounds,
Collection<Rectangle> otherIndicators);
public void layout (Graphics2D gfx, SceneObject key, Rectangle viewBounds);
/**
* Returns whether the indicator has already been laid out (and thus doesn't need to be again)
*/
public boolean isLaidOut ();
/**
* Called when the indicator is removed from the scene.