Need to restrict the clipping rectangle not replace it.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1291 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: SceneViewPanel.java,v 1.39 2002/04/23 01:18:17 mdb Exp $
|
// $Id: SceneViewPanel.java,v 1.40 2002/04/23 03:11:17 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.miso.scene;
|
package com.threerings.miso.scene;
|
||||||
|
|
||||||
@@ -176,7 +176,7 @@ public class SceneViewPanel extends MediaPanel
|
|||||||
protected void paintBits (Graphics2D gfx, int layer, Rectangle clip)
|
protected void paintBits (Graphics2D gfx, int layer, Rectangle clip)
|
||||||
{
|
{
|
||||||
Shape oclip = gfx.getClip();
|
Shape oclip = gfx.getClip();
|
||||||
gfx.setClip(clip);
|
gfx.clipRect(clip.x, clip.y, clip.width, clip.height);
|
||||||
_animmgr.renderAnimations(gfx, layer, clip);
|
_animmgr.renderAnimations(gfx, layer, clip);
|
||||||
gfx.setClip(oclip);
|
gfx.setClip(oclip);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user