diff options
Diffstat (limited to 'engines/toltecs/toltecs.cpp')
-rw-r--r-- | engines/toltecs/toltecs.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/toltecs/toltecs.cpp b/engines/toltecs/toltecs.cpp index 73de88f6f3..f1b531f878 100644 --- a/engines/toltecs/toltecs.cpp +++ b/engines/toltecs/toltecs.cpp @@ -98,7 +98,7 @@ int ToltecsEngine::go() { _cameraY = 0; _newCameraX = 0; _newCameraY = 0; - _cameraTop = 26; + _guiHeight = 26; _cameraHeight = 0; _yetAnotherX = 0; @@ -227,11 +227,11 @@ void ToltecsEngine::setCamera(int16 x, int16 y) { } -void ToltecsEngine::setCameraTop(int16 top) { - if (top != _cameraTop) { - _cameraTop = top; - _cameraHeight = 400 - _cameraTop; - debug(0, "ToltecsEngine::setCameraTop() _cameraTop = %d; _cameraHeight = %d", _cameraTop, _cameraHeight); +void ToltecsEngine::setGuiHeight(int16 guiHeight) { + if (guiHeight != _guiHeight) { + _guiHeight = guiHeight; + _cameraHeight = 400 - _guiHeight; + debug(0, "ToltecsEngine::setGuiHeight() _guiHeight = %d; _cameraHeight = %d", _guiHeight, _cameraHeight); // TODO: clearScreen(); } } |