From ec192b88d3855bb886edf4264c930a82f564cc56 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Sat, 19 Jan 2002 07:09:55 +0000 Subject: [PATCH] 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 --- .../com/threerings/media/animation/AnimatedPanel.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/java/com/threerings/media/animation/AnimatedPanel.java b/src/java/com/threerings/media/animation/AnimatedPanel.java index 5dcbfd592..9ed87293c 100644 --- a/src/java/com/threerings/media/animation/AnimatedPanel.java +++ b/src/java/com/threerings/media/animation/AnimatedPanel.java @@ -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