|
@@ -151,15 +151,15 @@ public class GameRenderer extends AnimationTimer implements IGameRenderer
|
|
|
public double getStringOffsetY(int y)
|
|
|
{
|
|
|
double height = canvas.getHeight();
|
|
|
- height -= textPainter.getHeight() * LINES;
|
|
|
+ height -= textPainter.getHeight(LINES);
|
|
|
height /= 2;
|
|
|
- return height + textPainter.getHeight() * y;
|
|
|
+ return height + textPainter.getHeight(y);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public double getLineHeight()
|
|
|
{
|
|
|
- return textPainter.getHeight();
|
|
|
+ return textPainter.getHeight(1);
|
|
|
}
|
|
|
|
|
|
@Override
|