From f4dcc69022c18bb522e12259bbb670180da7d144 Mon Sep 17 00:00:00 2001 From: Kevin Lamonte Date: Thu, 21 Feb 2019 14:17:03 -0600 Subject: [PATCH] Redraw on Windows --- src/jexer/backend/SwingTerminal.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/jexer/backend/SwingTerminal.java b/src/jexer/backend/SwingTerminal.java index 43c161f4..4efff3c2 100644 --- a/src/jexer/backend/SwingTerminal.java +++ b/src/jexer/backend/SwingTerminal.java @@ -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(); } /** -- 2.27.0