We only need the dimensions for creating the offscreen image.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@514 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Walter Korman
2001-10-22 18:13:51 +00:00
parent 1c6e066444
commit 7d667778b1
@@ -1,5 +1,5 @@
// //
// $Id: AnimatedPanel.java,v 1.1 2001/10/17 22:12:20 shaper Exp $ // $Id: AnimatedPanel.java,v 1.2 2001/10/22 18:13:51 shaper Exp $
package com.threerings.media.sprite; package com.threerings.media.sprite;
@@ -63,8 +63,8 @@ public class AnimatedPanel extends JPanel implements AnimatedView
*/ */
protected void createOffscreen () protected void createOffscreen ()
{ {
Rectangle bounds = getBounds(); Dimension d = getSize();
_offimg = createImage(bounds.width, bounds.height); _offimg = createImage(d.width, d.height);
_offg = _offimg.getGraphics(); _offg = _offimg.getGraphics();
} }