aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk')
-rw-r--r--src/FbTk/TextBox.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FbTk/TextBox.cc b/src/FbTk/TextBox.cc
index 1608076..cbb731b 100644
--- a/src/FbTk/TextBox.cc
+++ b/src/FbTk/TextBox.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: TextBox.cc,v 1.6 2004/01/08 22:02:52 fluxgen Exp $ 22// $Id: TextBox.cc,v 1.7 2004/01/21 12:32:53 fluxgen Exp $
23 23
24#include "TextBox.hh" 24#include "TextBox.hh"
25#include "Font.hh" 25#include "Font.hh"
@@ -161,7 +161,7 @@ void TextBox::clear() {
161 161
162 // draw cursor position 162 // draw cursor position
163 int cursor_pos = font().textWidth(text().c_str() + m_start_pos, m_cursor_pos) + 1; 163 int cursor_pos = font().textWidth(text().c_str() + m_start_pos, m_cursor_pos) + 1;
164 drawLine(gc(), cursor_pos, 0, cursor_pos, font().height()); 164 drawLine(gc(), cursor_pos, center_pos, cursor_pos, center_pos - font().height());
165} 165}
166 166
167void TextBox::moveResize(int x, int y, 167void TextBox::moveResize(int x, int y,