diff options
author | Paul Gilbert | 2012-11-18 16:05:38 +1100 |
---|---|---|
committer | Paul Gilbert | 2012-11-18 16:05:38 +1100 |
commit | 5b7b4bc9dfdaff9cb8b0aa8fd3f3293eb2ae23d9 (patch) | |
tree | 8553a6d3ed053225a065eba3784e95dbc809dd6d | |
parent | 9a996d66d443292f0485ea062a72b62a45cec43e (diff) | |
download | scummvm-rg350-5b7b4bc9dfdaff9cb8b0aa8fd3f3293eb2ae23d9.tar.gz scummvm-rg350-5b7b4bc9dfdaff9cb8b0aa8fd3f3293eb2ae23d9.tar.bz2 scummvm-rg350-5b7b4bc9dfdaff9cb8b0aa8fd3f3293eb2ae23d9.zip |
HOPKINS: Fix for computer text display at the correct position
-rw-r--r-- | engines/hopkins/computer.cpp | 4 | ||||
-rw-r--r-- | engines/hopkins/font.cpp | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/engines/hopkins/computer.cpp b/engines/hopkins/computer.cpp index de477b6102..e43bedfeb2 100644 --- a/engines/hopkins/computer.cpp +++ b/engines/hopkins/computer.cpp @@ -94,8 +94,8 @@ void ComputerManager::settextcolor(int col) { } void ComputerManager::settextposition(int xp, int yp) { - _textPosition.x = xp; - _textPosition.y = yp; + _textPosition.x = xp << 3; + _textPosition.y = yp << 4; } void ComputerManager::COMPUT_HOPKINS(int mode) { diff --git a/engines/hopkins/font.cpp b/engines/hopkins/font.cpp index 2b38bdb900..07a61d94a2 100644 --- a/engines/hopkins/font.cpp +++ b/engines/hopkins/font.cpp @@ -520,27 +520,27 @@ void FontManager::TEXT_COMPUT(int xp, int yp, const Common::String &msg, int col int v5; int v6; byte v7; - char v8; + int fontCol; int v9; srcP = msg.c_str(); v9 = xp; - v8 = col; + fontCol = col; do { v7 = *srcP++; if (v7 == '&') { - v8 = 2; + fontCol = 2; v7 = *srcP++; } if (v7 == '$') { - v8 = 4; + fontCol = 4; v7 = *srcP++; } if (!v7) break; if (v7 >= 32) { v5 = v7 - 32; - _vm->_graphicsManager.Affiche_Fonte(_vm->_graphicsManager.VESA_BUFFER, _vm->_globals.police, v9, yp, v7 - 32, v8); + _vm->_graphicsManager.Affiche_Fonte(_vm->_graphicsManager.VESA_BUFFER, _vm->_globals.police, v9, yp, v7 - 32, fontCol); v9 += _vm->_objectsManager.Get_Largeur(_vm->_globals.police, v5); v6 = _vm->_objectsManager.Get_Largeur(_vm->_globals.police, v5); _vm->_graphicsManager.Ajoute_Segment_Vesa(v9 - v6, yp, v9, yp + 12); |