From 52e44de862020c954d7f7c48a6244c7ea358a020 Mon Sep 17 00:00:00 2001 From: Mike Thomas Date: Wed, 3 Mar 2010 02:06:09 +0000 Subject: [PATCH] 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 --- src/java/com/threerings/media/FrameManager.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/java/com/threerings/media/FrameManager.java b/src/java/com/threerings/media/FrameManager.java index 624f6c93..bde503b3 100644 --- a/src/java/com/threerings/media/FrameManager.java +++ b/src/java/com/threerings/media/FrameManager.java @@ -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); } }