WireArrayEnd now created with U and GUITest supports U
[Mograsim.git] / era.mi / src / era / mi / logic / tests / GUITest.java
index 8630772..9db2df6 100644 (file)
@@ -240,6 +240,9 @@ public class GUITest extends JPanel
                case ZERO:
                        g.setColor(Color.BLACK);
                        break;
+               case U:
+                       g.setColor(Color.MAGENTA);
+                       break;
                default:
                        throw new IllegalArgumentException();
                }
@@ -279,7 +282,7 @@ public class GUITest extends JPanel
                                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)
                        {