Cope if our ManagedRoot is not a component.

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@227 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Michael Bayne
2007-05-04 23:08:08 +00:00
parent 3401bbf3bf
commit 2c6fdf5d94
@@ -329,7 +329,8 @@ public abstract class FrameManager
_timer = timer;
// set up our custom repaint manager
_repainter = new ActiveRepaintManager((Component)_root);
_repainter = new ActiveRepaintManager(
(_root instanceof Component) ? (Component)_root : _window);
RepaintManager.setCurrentManager(_repainter);
// turn off double buffering for the whole business because we handle repaints