AVALANCHE: move some more functions to Graphics
This commit is contained in:
parent
1af03774cc
commit
ffbe4646c1
5 changed files with 67 additions and 52 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue