X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=era.mi%2Fsrc%2Fera%2Fmi%2Flogic%2Ftests%2FGUITest.java;h=b93d4b6b81d550f15eaa0cdf4fc5cf9d6396019e;hb=2ccdd5a2ed812bc4eb864ab4fbb1adb1c723a1c9;hp=2599b542c1dc562ca44e2e1f2afc8fc48501f69c;hpb=c1d0ddc342c482051fa6c455bb286617135bd3c3;p=Mograsim.git diff --git a/era.mi/src/era/mi/logic/tests/GUITest.java b/era.mi/src/era/mi/logic/tests/GUITest.java index 2599b542..b93d4b6b 100644 --- a/era.mi/src/era/mi/logic/tests/GUITest.java +++ b/era.mi/src/era/mi/logic/tests/GUITest.java @@ -241,7 +241,7 @@ public class GUITest extends JPanel g.setColor(Color.BLACK); break; case U: - g.setColor(Color.BLUE); + g.setColor(Color.MAGENTA); break; default: throw new IllegalArgumentException(); @@ -282,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) {