Redraw on Windows
authorKevin Lamonte <kevin.lamonte@gmail.com>
Thu, 21 Feb 2019 20:17:03 +0000 (14:17 -0600)
committerKevin Lamonte <kevin.lamonte@gmail.com>
Thu, 21 Feb 2019 20:17:03 +0000 (14:17 -0600)
src/jexer/backend/SwingTerminal.java

index 43c161f4d6091d16c1ed7ec4bc675d6e2a603c5a..4efff3c22e0b5538cf32c892f9970f5797ed99ab 100644 (file)
@@ -567,6 +567,7 @@ public class SwingTerminal extends LogicalScreen
             && (swing.getBufferStrategy() != null)
         ) {
             do {
+                clearPhysical();
                 do {
                     drawToSwing();
                 } while (swing.getBufferStrategy().contentsRestored());
@@ -1101,6 +1102,7 @@ public class SwingTerminal extends LogicalScreen
     @Override
     public void resizeToScreen() {
         swing.setDimensions(textWidth * width, textHeight * height);
+        clearPhysical();
     }
 
     /**