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:
@@ -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;
|
package com.threerings.miso.scene;
|
||||||
|
|
||||||
@@ -343,12 +343,12 @@ public class IsoSceneView implements SceneView
|
|||||||
int sx = bounds.x, sy = bounds.y;
|
int sx = bounds.x, sy = bounds.y;
|
||||||
|
|
||||||
// draw x-coordinate
|
// draw x-coordinate
|
||||||
String str = "" + xx;
|
String str = String.valueOf(xx);
|
||||||
int xpos = sx + cx - (fm.stringWidth(str) / 2);
|
int xpos = sx + cx - (fm.stringWidth(str) / 2);
|
||||||
gfx.drawString(str, xpos, sy + cy);
|
gfx.drawString(str, xpos, sy + cy);
|
||||||
|
|
||||||
// draw y-coordinate
|
// draw y-coordinate
|
||||||
str = "" + yy;
|
str = String.valueOf(yy);
|
||||||
xpos = sx + cx - (fm.stringWidth(str) / 2);
|
xpos = sx + cx - (fm.stringWidth(str) / 2);
|
||||||
gfx.drawString(str, xpos, sy + cy + fhei);
|
gfx.drawString(str, xpos, sy + cy + fhei);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user