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:
@@ -329,7 +329,8 @@ public abstract class FrameManager
|
|||||||
_timer = timer;
|
_timer = timer;
|
||||||
|
|
||||||
// set up our custom repaint manager
|
// set up our custom repaint manager
|
||||||
_repainter = new ActiveRepaintManager((Component)_root);
|
_repainter = new ActiveRepaintManager(
|
||||||
|
(_root instanceof Component) ? (Component)_root : _window);
|
||||||
RepaintManager.setCurrentManager(_repainter);
|
RepaintManager.setCurrentManager(_repainter);
|
||||||
|
|
||||||
// turn off double buffering for the whole business because we handle repaints
|
// turn off double buffering for the whole business because we handle repaints
|
||||||
|
|||||||
Reference in New Issue
Block a user