From eea9fc637cb04ec7034fbd4a6d0c8832627f6848 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Wed, 3 Oct 2012 01:09:11 +0200 Subject: 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. --- engines/toltecs/menu.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engines/toltecs') 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 -- cgit v1.2.3