From 4c589d380220e1ef0bc753a8dd0487d59ad7bccc Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Tue, 11 Jun 2002 00:04:43 +0000 Subject: [PATCH] Fixed up to conform to new setPath() signature. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1435 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../threerings/miso/client/ScrollingTestApp.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/src/java/com/threerings/miso/client/ScrollingTestApp.java b/tests/src/java/com/threerings/miso/client/ScrollingTestApp.java index 4935d58f9..b5f5ef4f1 100644 --- a/tests/src/java/com/threerings/miso/client/ScrollingTestApp.java +++ b/tests/src/java/com/threerings/miso/client/ScrollingTestApp.java @@ -1,5 +1,5 @@ // -// $Id: ScrollingTestApp.java,v 1.13 2002/05/31 07:34:23 mdb Exp $ +// $Id: ScrollingTestApp.java,v 1.14 2002/06/11 00:04:43 mdb Exp $ package com.threerings.miso.scene; @@ -98,16 +98,16 @@ public class ScrollingTestApp protected void viewFinishedScrolling () { // keep scrolling for a spell if (++_sidx < DX.length) { - LinePath path = new LinePath(_foo.x, _foo.y, - _foo.x + DX[_sidx], - _foo.y + DY[_sidx], 3000l); - setPath(path, _foo); + int x = _viewmodel.bounds.width/2, + y = _viewmodel.bounds.height/2; + LinePath path = new LinePath( + x, y, x + DX[_sidx], y + DY[_sidx], 3000l); + setPath(path); } } - protected Point _foo = new Point(); protected int _sidx = -1; - protected final int[] DX = { 0, 1000, -1000, 1000, 2000 }; - protected final int[] DY = { 1000, 0, 1000, -1000, 1000 }; + protected final int[] DX = { 162, 0, 1000, -1000, 1000, 2000 }; + protected final int[] DY = { 140, 1000, 0, 1000, -1000, 1000 }; }; _panel.setScrolling(0, 1000, 3000l); _frame.setPanel(_panel);