This seems like its been pretty happy on ice, so take off the training wheels

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@303 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Charlie Groves
2007-10-12 20:11:00 +00:00
parent 8bc738c6d8
commit e0a22877e2
@@ -122,12 +122,6 @@ public class ActiveRepaintManager extends RepaintManager
Log.info("Invalidating " + toString(vroot) + ".");
}
_invalid = ListUtil.add(_invalid, vroot);
// on the mac, components frequently do not repaint themselves after being invalidated
// so we have to force a repaint from the validation roon on down
if (RunAnywhere.isMacOS() && _macDirtyOnInvalid && vroot instanceof JComponent) {
addDirtyRegion((JComponent)vroot, 0, 0, vroot.getWidth(), vroot.getHeight());
}
}
}
@@ -442,13 +436,6 @@ public class ActiveRepaintManager extends RepaintManager
}
}
/**
* Set if the Mac should dirty its validation root if a single component is invalid.
*/
public static void setMacDirtyOnInvalid(boolean dirty) {
_macDirtyOnInvalid = dirty;
}
/** The root of our interface. */
protected Component _root;
@@ -469,8 +456,4 @@ public class ActiveRepaintManager extends RepaintManager
/** We debug so much that we have to make it easy to enable and disable debug logging. Yay! */
protected static final boolean DEBUG = false;
/** If true, Macs dirty the whole screen if any component is invalid */
protected static boolean _macDirtyOnInvalid = true;
}