X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTPasswordField.java;h=ea88dfa45f96761e868fa65236895fb8f22dde98;hb=a69ed767c9c07cf35cf1c5f7821fc009cfe79cd2;hp=696598b94339ac77935b6ff5a51f018244ca6c25;hpb=d625990deaa2c24624adc9fbd3fcab58891f5aef;p=fanfix.git diff --git a/src/jexer/TPasswordField.java b/src/jexer/TPasswordField.java index 696598b..ea88dfa 100644 --- a/src/jexer/TPasswordField.java +++ b/src/jexer/TPasswordField.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"), @@ -115,13 +115,11 @@ public class TPasswordField extends TField { end = text.length(); } - getScreen().hLineXY(0, 0, getWidth(), GraphicsChars.HATCH, fieldColor); + hLineXY(0, 0, getWidth(), GraphicsChars.HATCH, fieldColor); if (showStars) { - getScreen().hLineXY(0, 0, getWidth() - 2, '*', - fieldColor); + hLineXY(0, 0, getWidth() - 2, '*', fieldColor); } else { - getScreen().putStringXY(0, 0, text.substring(windowStart, end), - fieldColor); + putStringXY(0, 0, text.substring(windowStart, end), fieldColor); } // Fix the cursor, it will be rendered by TApplication.drawAll().