X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjexer%2Fbackend%2FLogicalScreen.java;h=e8d2662943abd06d579fe86ff082c7fc482a900d;hb=027de5ae322ef58d3bc74051d3aa20847455361a;hp=9af633dbac645be3198a27935590d6145143b9cc;hpb=d14e2d78fa6f72df00ad84e14e0bed1d5aa090f4;p=fanfix.git diff --git a/src/jexer/backend/LogicalScreen.java b/src/jexer/backend/LogicalScreen.java index 9af633d..e8d2662 100644 --- a/src/jexer/backend/LogicalScreen.java +++ b/src/jexer/backend/LogicalScreen.java @@ -978,16 +978,14 @@ public class LogicalScreen implements Screen { BufferedImage rightImage = image.getSubimage(getTextWidth(), 0, getTextWidth(), getTextHeight()); - Cell left = new Cell(); - left.setTo(cell); + Cell left = new Cell(cell); left.setImage(leftImage); left.setWidth(Cell.Width.LEFT); // Blank out the char itself, so that shadows do not leave artifacts. left.setChar(' '); putCharXY(x, y, left); - Cell right = new Cell(); - right.setTo(cell); + Cell right = new Cell(cell); right.setImage(rightImage); right.setWidth(Cell.Width.RIGHT); // Blank out the char itself, so that shadows do not leave artifacts. @@ -1006,8 +1004,7 @@ public class LogicalScreen implements Screen { public final void putFullwidthCharXY(final int x, final int y, final char ch, final CellAttributes attr) { - Cell cell = new Cell(ch); - cell.setAttr(attr); + Cell cell = new Cell(ch, attr); putFullwidthCharXY(x, y, cell); }