Uh.... If we've passed along our temporary/optimization member var _tbounds as a parameter to renderLayer() it's probably best if we don't then try to reuse _tbounds for something else while simultaneously attempting to use that parameter.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@896 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -603,9 +603,9 @@ public abstract class FrameManager
|
|||||||
|
|
||||||
// if this overlay does not intersect the component we just rendered, we don't need to
|
// if this overlay does not intersect the component we just rendered, we don't need to
|
||||||
// repaint it
|
// repaint it
|
||||||
_tbounds.setBounds(0, 0, comp.getWidth(), comp.getHeight());
|
Rectangle compBounds = new Rectangle(0, 0, comp.getWidth(), comp.getHeight());
|
||||||
getRoot(comp, _tbounds);
|
getRoot(comp, compBounds);
|
||||||
if (!_tbounds.intersects(bounds)) {
|
if (!compBounds.intersects(bounds)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -617,13 +617,13 @@ public abstract class FrameManager
|
|||||||
}
|
}
|
||||||
|
|
||||||
// translate into the components coordinate system and render
|
// translate into the components coordinate system and render
|
||||||
g.translate(_tbounds.x, _tbounds.y);
|
g.translate(compBounds.x, compBounds.y);
|
||||||
try {
|
try {
|
||||||
comp.paint(g);
|
comp.paint(g);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.warning("Component choked while rendering.", e);
|
log.warning("Component choked while rendering.", e);
|
||||||
}
|
}
|
||||||
g.translate(-_tbounds.x, -_tbounds.y);
|
g.translate(-compBounds.x, -compBounds.y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user