Use String.valueOf(int) to convert int to string.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@782 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Walter Korman
2001-12-14 23:31:04 +00:00
parent efd1a69caa
commit b00fdc6ab5
@@ -1,5 +1,5 @@
//
// $Id: IsoSceneView.java,v 1.76 2001/12/12 19:53:11 mdb Exp $
// $Id: IsoSceneView.java,v 1.77 2001/12/14 23:31:04 shaper Exp $
package com.threerings.miso.scene;
@@ -343,12 +343,12 @@ public class IsoSceneView implements SceneView
int sx = bounds.x, sy = bounds.y;
// draw x-coordinate
String str = "" + xx;
String str = String.valueOf(xx);
int xpos = sx + cx - (fm.stringWidth(str) / 2);
gfx.drawString(str, xpos, sy + cy);
// draw y-coordinate
str = "" + yy;
str = String.valueOf(yy);
xpos = sx + cx - (fm.stringWidth(str) / 2);
gfx.drawString(str, xpos, sy + cy + fhei);
}