aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche/parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/avalanche/parser.cpp')
-rw-r--r--engines/avalanche/parser.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/engines/avalanche/parser.cpp b/engines/avalanche/parser.cpp
index 8d01996800..f2bea80c26 100644
--- a/engines/avalanche/parser.cpp
+++ b/engines/avalanche/parser.cpp
@@ -449,14 +449,14 @@ void Parser::plotText() {
void Parser::cursorOn() {
if (_cursorState == true)
return;
- drawCursor();
+ _vm->_graphics->drawCursor(_inputTextPos);
_cursorState = true;
}
void Parser::cursorOff() {
if (_cursorState == false)
return;
- drawCursor();
+ _vm->_graphics->drawCursor(_inputTextPos);
_cursorState = false;
}
@@ -471,12 +471,6 @@ int16 Parser::getPos(const Common::String &crit, const Common::String &src) {
return -1;
}
-void Parser::drawCursor() {
- // Draw the '_' character.
- for (int bit = 0; bit < 8; bit++)
- *(byte *)_vm->_graphics->_surface.getBasePtr(24 + _inputTextPos * 8 + 7 - bit, 168) = kColorWhite;
-}
-
void Parser::wipeText() {
CursorMan.showMouse(false);
cursorOff();