fixed cursor bug, thanks Mathias Gumz
fluxgen fluxgen
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
src/FbTk/TextBox.cc
→
src/FbTk/TextBox.cc
@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: TextBox.cc,v 1.6 2004/01/08 22:02:52 fluxgen Exp $ +// $Id: TextBox.cc,v 1.7 2004/01/21 12:32:53 fluxgen Exp $ #include "TextBox.hh" #include "Font.hh"@@ -161,7 +161,7 @@ 0, center_pos); // pos
// draw cursor position int cursor_pos = font().textWidth(text().c_str() + m_start_pos, m_cursor_pos) + 1; - drawLine(gc(), cursor_pos, 0, cursor_pos, font().height()); + drawLine(gc(), cursor_pos, center_pos, cursor_pos, center_pos - font().height()); } void TextBox::moveResize(int x, int y,