[Scummvm-cvs-logs] scummvm master -> eea9fc637cb04ec7034fbd4a6d0c8832627f6848

eriktorbjorn eriktorbjorn at telia.com
Wed Oct 3 01:11:04 CEST 2012


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
eea9fc637c TOLTECS: Added TODO comment about main menu position


Commit: eea9fc637cb04ec7034fbd4a6d0c8832627f6848
    https://github.com/scummvm/scummvm/commit/eea9fc637cb04ec7034fbd4a6d0c8832627f6848
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2012-10-02T16:09:11-07:00

Commit Message:
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.

Changed paths:
    engines/toltecs/menu.cpp



diff --git a/engines/toltecs/menu.cpp b/engines/toltecs/menu.cpp
index ac91191..4fd4032 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






More information about the Scummvm-git-logs mailing list