Added toString(DisplayMode).

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2066 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Walter Korman
2002-12-13 04:37:27 +00:00
parent 90b76f1417
commit 1c4503efe5
@@ -1,5 +1,5 @@
//
// $Id: ModeUtil.java,v 1.4 2002/10/15 21:01:39 ray Exp $
// $Id: ModeUtil.java,v 1.5 2002/12/13 04:37:27 shaper Exp $
package com.threerings.media.util;
@@ -67,4 +67,15 @@ public class ModeUtil
return (mset.size() > 0) ? (DisplayMode)mset.first() : null;
}
/**
* Returns a string representation of the supplied display mode.
*/
public static String toString (DisplayMode mode)
{
return "[width=" + mode.getWidth() +
", height=" + mode.getHeight() +
", depth=" + mode.getBitDepth() +
", refresh=" + mode.getRefreshRate() + "]";
}
}