cutting v0.0.1
[fanfix.git] / src / jexer / TApplication.java
index 8071ae8edc2a5a0f5762dcdd2d2871db960dbe54..4c55aad9a70f20f83d63fdfb49e9b6b5df8c0e9f 100644 (file)
@@ -501,7 +501,9 @@ public class TApplication {
             doIdle();
 
             // Update the screen
-            drawAll();
+            synchronized (getScreen()) {
+                drawAll();
+            }
         }
 
         // Shutdown the consumer threads
@@ -1287,7 +1289,7 @@ public class TApplication {
      * @param title menu title
      * @return the new menu
      */
-    public final TMenu addMenu(String title) {
+    public final TMenu addMenu(final String title) {
         int x = 0;
         int y = 0;
         TMenu menu = new TMenu(this, x, y, title);