Rolling back r292 with great sadness in my heart. The non-repainting doesn't happen very often, but sure enough it does and sure enough it's awful.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@294 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -121,6 +121,12 @@ 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() && vroot instanceof JComponent) {
|
||||
addDirtyRegion((JComponent)vroot, 0, 0, vroot.getWidth(), vroot.getHeight());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user