Fix shadow over double-width
authorKevin Lamonte <kevin.lamonte@gmail.com>
Mon, 5 Aug 2019 03:50:33 +0000 (22:50 -0500)
committerKevin Lamonte <kevin.lamonte@gmail.com>
Mon, 5 Aug 2019 03:50:33 +0000 (22:50 -0500)
src/jexer/TTerminalWindow.java

index d1853310349b80c6646d06b6b32e12ea72260cee..945536d57f3e01849a0dc42b2808680707e63c33 100644 (file)
@@ -1061,6 +1061,11 @@ public class TTerminalWindow extends TScrollableWindow
         }
         left.setImage(leftImage);
         right.setImage(rightImage);
+        // Since we have image data, ditch the character here.  Otherwise, a
+        // drawBoxShadow() over the terminal window will show the characters
+        // which looks wrong.
+        left.setChar(' ');
+        right.setChar(' ');
         putCharXY(x, y, left);
         putCharXY(x + 1, y, right);
     }