From: Kevin Lamonte Date: Thu, 21 Feb 2019 20:17:03 +0000 (-0600) Subject: Redraw on Windows X-Git-Tag: fanfix-swing-0.0.1~12^2~13^2~184 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=f4dcc69022c18bb522e12259bbb670180da7d144;p=fanfix-swing.git Redraw on Windows --- 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(); } /**