No more MisoSceneMetrics.bounds.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2457 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: ScrollingTestApp.java,v 1.21 2003/04/17 19:21:17 mdb Exp $
|
// $Id: ScrollingTestApp.java,v 1.22 2003/04/25 15:52:25 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.miso.client;
|
package com.threerings.miso.client;
|
||||||
|
|
||||||
@@ -114,8 +114,7 @@ public class ScrollingTestApp
|
|||||||
_ship.setFollowingPathAction("sailing");
|
_ship.setFollowingPathAction("sailing");
|
||||||
_ship.setRestingAction("sailing");
|
_ship.setRestingAction("sailing");
|
||||||
_ship.setActionSequence("sailing");
|
_ship.setActionSequence("sailing");
|
||||||
_ship.setLocation(_panel.getSceneMetrics().bounds.width/2,
|
_ship.setLocation(0, 0);
|
||||||
_panel.getSceneMetrics().bounds.height/2);
|
|
||||||
_panel.addSprite(_ship);
|
_panel.addSprite(_ship);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: ViewerSceneViewPanel.java,v 1.57 2003/04/17 19:21:17 mdb Exp $
|
// $Id: ViewerSceneViewPanel.java,v 1.58 2003/04/25 15:52:25 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.miso.viewer;
|
package com.threerings.miso.viewer;
|
||||||
|
|
||||||
@@ -172,8 +172,7 @@ public class ViewerSceneViewPanel extends MisoScenePanel
|
|||||||
*/
|
*/
|
||||||
protected void createRandomPath (CharacterSprite s)
|
protected void createRandomPath (CharacterSprite s)
|
||||||
{
|
{
|
||||||
Dimension d = _metrics.bounds.getSize();
|
Dimension d = _vbounds.getSize();
|
||||||
|
|
||||||
int x, y;
|
int x, y;
|
||||||
do {
|
do {
|
||||||
x = RandomUtil.getInt(d.width);
|
x = RandomUtil.getInt(d.width);
|
||||||
|
|||||||
Reference in New Issue
Block a user