From b1109c83707e3a88aac6540658c2be0401ccf9d8 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Sun, 17 Feb 2002 23:39:32 +0000 Subject: [PATCH] The animated view is now passed its invalid rect count in paintImmediately() so that it can figure out if it's being painted solely to facilitate scrolling or because there are dirty regions. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1010 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../com/threerings/media/animation/AnimatedView.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/java/com/threerings/media/animation/AnimatedView.java b/src/java/com/threerings/media/animation/AnimatedView.java index 71adb6445..259ec5b3c 100644 --- a/src/java/com/threerings/media/animation/AnimatedView.java +++ b/src/java/com/threerings/media/animation/AnimatedView.java @@ -1,5 +1,5 @@ // -// $Id: AnimatedView.java,v 1.1 2002/01/11 16:17:33 shaper Exp $ +// $Id: AnimatedView.java,v 1.2 2002/02/17 23:39:32 mdb Exp $ package com.threerings.media.animation; @@ -35,6 +35,11 @@ public interface AnimatedView * complete the painting process before returning from this function). * This will only be called on the AWT thread and when it is safe to * paint. + * + * @param invalidRectCount the number of invalide regions that + * motivated the animation manager to repaint the animated view (which + * could be zero if the view is scrolling and otherwise has no dirty + * regions) */ - public void paintImmediately (); + public void paintImmediately (int invalidRectCount); }