diff --git a/src/java/com/threerings/media/MediaPanel.java b/src/java/com/threerings/media/MediaPanel.java index d3b5c896a..484eefac3 100644 --- a/src/java/com/threerings/media/MediaPanel.java +++ b/src/java/com/threerings/media/MediaPanel.java @@ -116,6 +116,15 @@ public class MediaPanel extends JComponent }); } + /** + * Get the bounds of the viewport, in media coordinates. For the base + * MediaPanel, this will always be (0, 0, width, height). + */ + public Rectangle getViewBounds () + { + return new Rectangle(getWidth(), getHeight()); + } + /** * Returns a reference to the animation manager used by this media * panel.