diff --git a/src/java/com/threerings/media/util/BackgroundTiler.java b/src/java/com/threerings/media/util/BackgroundTiler.java index 2c2e67220..815deb28e 100644 --- a/src/java/com/threerings/media/util/BackgroundTiler.java +++ b/src/java/com/threerings/media/util/BackgroundTiler.java @@ -1,5 +1,5 @@ // -// $Id: BackgroundTiler.java,v 1.6 2003/11/14 19:39:52 ray Exp $ +// $Id: BackgroundTiler.java,v 1.7 2003/11/19 18:27:10 mdb Exp $ package com.threerings.media.util; @@ -57,6 +57,24 @@ public class BackgroundTiler } } + /** + * Returns the "natural" width of the image being used to tile the + * background. + */ + public int getNaturalWidth () + { + return _w3*2+_cw3; + } + + /** + * Returns the "natural" height of the image being used to tile the + * background. + */ + public int getNaturalHeight () + { + return _h3*2+_ch3; + } + /** * Fills the requested region with the background defined by our * source image.