Need to account for negative scrolling deltas.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1034 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: AnimatedPanel.java,v 1.11 2002/02/19 03:57:30 mdb Exp $
|
||||
// $Id: AnimatedPanel.java,v 1.12 2002/02/19 04:45:13 mdb Exp $
|
||||
|
||||
package com.threerings.media.animation;
|
||||
|
||||
@@ -242,13 +242,13 @@ public class AnimatedPanel extends Canvas implements AnimatedView
|
||||
invalidRects.add(
|
||||
new Rectangle(width - dx, 0, dx, height));
|
||||
} else if (dx < 0) {
|
||||
invalidRects.add(new Rectangle(0, 0, dx, height));
|
||||
invalidRects.add(new Rectangle(0, 0, -dx, height));
|
||||
}
|
||||
if (dy > 0) {
|
||||
invalidRects.add(
|
||||
new Rectangle(0, height - dy, width, dy));
|
||||
} else if (dy < 0) {
|
||||
invalidRects.add(new Rectangle(0, 0, width, dy));
|
||||
invalidRects.add(new Rectangle(0, 0, width, -dy));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: IsoSceneView.java,v 1.98 2002/02/19 01:26:17 mdb Exp $
|
||||
// $Id: IsoSceneView.java,v 1.99 2002/02/19 04:45:14 mdb Exp $
|
||||
|
||||
package com.threerings.miso.scene;
|
||||
|
||||
@@ -165,7 +165,7 @@ public class IsoSceneView implements SceneView
|
||||
_model.bounds.y, dx, _model.bounds.height));
|
||||
} else if (dx < 0) {
|
||||
invalidateRect(new Rectangle(_model.bounds.x, _model.bounds.y,
|
||||
dx, _model.bounds.height));
|
||||
-dx, _model.bounds.height));
|
||||
}
|
||||
|
||||
if (dy > 0) {
|
||||
@@ -174,7 +174,7 @@ public class IsoSceneView implements SceneView
|
||||
_model.bounds.width, dy));
|
||||
} else if (dy < 0) {
|
||||
invalidateRect(new Rectangle(_model.bounds.x, _model.bounds.y,
|
||||
_model.bounds.width, dy));
|
||||
_model.bounds.width, -dy));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user