diff options
author | Eugene Sandulenko | 2016-01-04 00:13:28 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2016-01-04 00:13:28 +0100 |
commit | c8b20bc8ab83e24dd7e4f6ac06fb2a80f97f6ba2 (patch) | |
tree | 6e3fc2c182b231f0d960f42ed7c37241a7be4bd4 | |
parent | f97c915c7b0f3ef3c34dfea78619d8c17446638b (diff) | |
download | scummvm-rg350-c8b20bc8ab83e24dd7e4f6ac06fb2a80f97f6ba2.tar.gz scummvm-rg350-c8b20bc8ab83e24dd7e4f6ac06fb2a80f97f6ba2.tar.bz2 scummvm-rg350-c8b20bc8ab83e24dd7e4f6ac06fb2a80f97f6ba2.zip |
WAGE: Fix cursor position
-rw-r--r-- | engines/wage/gui.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/wage/gui.cpp b/engines/wage/gui.cpp index 2f36270cc5..4f451bbd1c 100644 --- a/engines/wage/gui.cpp +++ b/engines/wage/gui.cpp @@ -132,12 +132,12 @@ static void cursor_timer_handler(void *refCon) { x += gui->_consoleTextArea.left; y += gui->_consoleTextArea.top; - gui->_screen.vLine(x, y - kCursorHeight, y, gui->_cursorState ? kColorBlack : kColorWhite); + gui->_screen.vLine(x, y, y + kCursorHeight, gui->_cursorState ? kColorBlack : kColorWhite); if (!gui->_cursorOff) gui->_cursorState = !gui->_cursorState; - g_system->copyRectToScreen(gui->_screen.getBasePtr(x, y - kCursorHeight), gui->_screen.pitch, x, y - kCursorHeight, 1, kCursorHeight); + g_system->copyRectToScreen(gui->_screen.getBasePtr(x, y), gui->_screen.pitch, x, y, 1, kCursorHeight); g_system->updateScreen(); } @@ -433,9 +433,9 @@ void Gui::flowText(String &str) { _cursorX = kConHPadding; if (_scrollPos) - _cursorY = (_consoleNumLines + 1) * _consoleLineHeight; + _cursorY = (_consoleNumLines) * _consoleLineHeight; else - _cursorY = (_lines.size() + 1) * _consoleLineHeight; + _cursorY = (_lines.size()) * _consoleLineHeight; if (pos != _scrollPos) _consoleFullRedraw = true; @@ -528,7 +528,7 @@ void Gui::drawInput() { g_system->copyRectToScreen(_screen.getBasePtr(x, y), _screen.pitch, x, y, textW + 10, font->getFontHeight()); - _cursorX = font->getStringWidth(_engine->_inputText) + 1; + _cursorX = font->getStringWidth(_engine->_inputText) + kConHPadding; } void Gui::loadFonts() { |