aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2004-01-21 12:32:53 (GMT)
committerfluxgen <fluxgen>2004-01-21 12:32:53 (GMT)
commit87629ad23c1db3072f9d2b9cf827ba64773ebf97 (patch)
tree2eb40cf47bef799a4a92bbc09fead174d9c47b12
parentdc318f6fa430426a283c085b327305acebbe9dd2 (diff)
downloadfluxbox-87629ad23c1db3072f9d2b9cf827ba64773ebf97.zip
fluxbox-87629ad23c1db3072f9d2b9cf827ba64773ebf97.tar.bz2
fixed cursor bug, thanks Mathias Gumz
-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,