From: Kevin Lamonte Date: Thu, 21 Feb 2019 20:17:03 +0000 (-0600) Subject: Redraw on Windows X-Git-Tag: fanfix-3.0.1^2~188 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=f4dcc69022c18bb522e12259bbb670180da7d144;p=fanfix.git Redraw on Windows --- diff --git a/src/jexer/backend/SwingTerminal.java b/src/jexer/backend/SwingTerminal.java index 43c161f..4efff3c 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(); } /**