Added back overridden update() because Canvas.update() clears its whole
self when update is called which is seriously undesirable. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@885 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: AnimatedPanel.java,v 1.2 2002/01/19 07:04:28 mdb Exp $
|
||||
// $Id: AnimatedPanel.java,v 1.3 2002/01/19 07:09:55 mdb Exp $
|
||||
|
||||
package com.threerings.media.animation;
|
||||
|
||||
@@ -52,6 +52,14 @@ public class AnimatedPanel extends Canvas implements AnimatedView
|
||||
_animmgr.addDirtyRect(g.getClipBounds());
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
public void update (Graphics g)
|
||||
{
|
||||
// the normal Canvas.update() fills itself with its background
|
||||
// color before calling paint() which we definitely don't want
|
||||
paint(g);
|
||||
}
|
||||
|
||||
/**
|
||||
* Renders the panel to the given graphics object. Sub-classes
|
||||
* should override this method to paint their panel-specific
|
||||
|
||||
Reference in New Issue
Block a user