Let's not make a rectangle just to throw it away & remake it.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@1030 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -152,14 +152,15 @@ public class ActiveRepaintManager extends RepaintManager
|
||||
return;
|
||||
}
|
||||
|
||||
drect = new Rectangle(x, y, width, height);
|
||||
if (DEBUG) {
|
||||
log.info("Dirtying component [comp=" + toString(comp) +
|
||||
", drect=" + StringUtil.toString(new Rectangle(x, y, width, height)) + "].");
|
||||
", drect=" + StringUtil.toString(drect) + "]");
|
||||
}
|
||||
|
||||
// if we made it this far, we can queue up a dirty region for this component to be
|
||||
// repainted on the next tick
|
||||
_dirty.put(comp, new Rectangle(x, y, width, height));
|
||||
_dirty.put(comp, drect);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user