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
|
||||
// repaint it
|
||||
_tbounds.setBounds(0, 0, comp.getWidth(), comp.getHeight());
|
||||
getRoot(comp, _tbounds);
|
||||
if (!_tbounds.intersects(bounds)) {
|
||||
Rectangle compBounds = new Rectangle(0, 0, comp.getWidth(), comp.getHeight());
|
||||
getRoot(comp, compBounds);
|
||||
if (!compBounds.intersects(bounds)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -617,13 +617,13 @@ public abstract class FrameManager
|
||||
}
|
||||
|
||||
// translate into the components coordinate system and render
|
||||
g.translate(_tbounds.x, _tbounds.y);
|
||||
g.translate(compBounds.x, compBounds.y);
|
||||
try {
|
||||
comp.paint(g);
|
||||
} catch (Exception 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