X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTVScroller.java;h=444e058542c8d566be5395f2f51ee1e88ff57a28;hb=505be508ae7d3fb48122be548b310a238cfb91eb;hp=9b99cfcaa035db05a38c55096be892387ffe3baf;hpb=051e29138b18fb4b731a72f8727475b10e4c74e4;p=nikiroo-utils.git diff --git a/src/jexer/TVScroller.java b/src/jexer/TVScroller.java index 9b99cfc..444e058 100644 --- a/src/jexer/TVScroller.java +++ b/src/jexer/TVScroller.java @@ -3,7 +3,7 @@ * * The MIT License (MIT) * - * Copyright (C) 2017 Kevin Lamonte + * Copyright (C) 2019 Kevin Lamonte * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -212,21 +212,16 @@ public class TVScroller extends TWidget { public void draw() { CellAttributes arrowColor = getTheme().getColor("tscroller.arrows"); CellAttributes barColor = getTheme().getColor("tscroller.bar"); - getScreen().putCharXY(0, 0, GraphicsChars.CP437[0x1E], arrowColor); - getScreen().putCharXY(0, getHeight() - 1, GraphicsChars.CP437[0x1F], - arrowColor); + putCharXY(0, 0, GraphicsChars.CP437[0x1E], arrowColor); + putCharXY(0, getHeight() - 1, GraphicsChars.CP437[0x1F], arrowColor); // Place the box if (bottomValue > topValue) { - getScreen().vLineXY(0, 1, getHeight() - 2, - GraphicsChars.CP437[0xB1], barColor); - getScreen().putCharXY(0, boxPosition(), GraphicsChars.BOX, - arrowColor); + vLineXY(0, 1, getHeight() - 2, GraphicsChars.CP437[0xB1], barColor); + putCharXY(0, boxPosition(), GraphicsChars.BOX, arrowColor); } else { - getScreen().vLineXY(0, 1, getHeight() - 2, GraphicsChars.HATCH, - barColor); + vLineXY(0, 1, getHeight() - 2, GraphicsChars.HATCH, barColor); } - } // ------------------------------------------------------------------------