g.setFont(g.getFont().deriveFont(Math.min(height, width) / 40f));
}
- private void drawString(Graphics g, String s, int x, int y, double anchorX, double anchorY)
+ private static void drawString(Graphics g, String s, int x, int y, double anchorX, double anchorY)
{
int h = g.getFontMetrics().getAscent();
int w = g.getFontMetrics().stringWidth(s);
case ZERO:
g.setColor(Color.BLACK);
break;
+ case U:
+ g.setColor(Color.MAGENTA);
+ break;
default:
throw new IllegalArgumentException();
}
gt.repaint(12);
try
{
- Thread.sleep(Math.max(16 - System.currentTimeMillis() + lastFrame, 0));
+ Thread.sleep(Math.max(updateT - System.currentTimeMillis() + lastFrame, 0));
}
catch (Exception e)
{