diff options
Diffstat (limited to 'gui/EditTextWidget.cpp')
-rw-r--r-- | gui/EditTextWidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/EditTextWidget.cpp b/gui/EditTextWidget.cpp index ade3e0ec8d..0e1781393f 100644 --- a/gui/EditTextWidget.cpp +++ b/gui/EditTextWidget.cpp @@ -170,8 +170,8 @@ void EditTextWidget::drawCaret(bool erase) { return; int16 color = erase ? g_gui._bgcolor : g_gui._textcolorhi; - int x = _x + _boss->getX() + 2; - int y = _y + _boss->getY() + 1; + int x = getAbsX() + 2; + int y = getAbsY() + 1; int width = getCaretPos(); x += width; |