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