diff options
author | Torbjörn Andersson | 2012-10-03 01:09:11 +0200 |
---|---|---|
committer | Torbjörn Andersson | 2012-10-03 01:09:11 +0200 |
commit | eea9fc637cb04ec7034fbd4a6d0c8832627f6848 (patch) | |
tree | ada74451c3e5fc5ba2440bdeb9e387c5677e3359 | |
parent | f758b8422c821b54c5825fa92d25cf3d1c410e3a (diff) | |
download | scummvm-rg350-eea9fc637cb04ec7034fbd4a6d0c8832627f6848.tar.gz scummvm-rg350-eea9fc637cb04ec7034fbd4a6d0c8832627f6848.tar.bz2 scummvm-rg350-eea9fc637cb04ec7034fbd4a6d0c8832627f6848.zip |
TOLTECS: Added TODO comment about main menu position
I'm guessing that the unused _top variable is what causes the main
menu to be drawn at the wrong position at the very start of the
game. At that point, it's 30 which seems to be by how much the Y
coordinate is off.
-rw-r--r-- | engines/toltecs/menu.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/toltecs/menu.cpp b/engines/toltecs/menu.cpp index ac91191613..4fd40324e8 100644 --- a/engines/toltecs/menu.cpp +++ b/engines/toltecs/menu.cpp @@ -58,7 +58,12 @@ int MenuSystem::run(MenuID menuId) { _editingDescription = false; _running = true; + + // TODO: It seems the Y coordinate of the entire GUI should be offset + // by this much to be drawn correctly. At least, that appears to be the + // case for the main menu at the start of the game. _top = 30 - _vm->_guiHeight / 2; + _needRedraw = false; // TODO: buildColorTransTable2 |