From 176f32bfa166a6c842092abdd9cc936b0260f31d Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 8 Oct 2005 15:20:11 +0000 Subject: _vm->getSceneHeight() --> _vm->_scene->getHeight() and make it return different scene height for individual panel modes. svn-id: r18959 --- saga/scene.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'saga/scene.h') diff --git a/saga/scene.h b/saga/scene.h index def1d1ddd2..8a1ad20d02 100644 --- a/saga/scene.h +++ b/saga/scene.h @@ -29,6 +29,7 @@ #include "saga/font.h" #include "saga/list.h" #include "saga/actor.h" +#include "saga/interface.h" namespace Saga { @@ -273,6 +274,14 @@ class Scene { } void drawTextList(Surface *ds); + + int getHeight() const { + if (_vm->_interface->getMode() == kPanelChapterSelection) + return _vm->_gameDisplayInfo.logicalWidth; + else + return _vm->_gameDisplayInfo.sceneHeight; + } + private: void loadScene(LoadSceneParams *loadSceneParams); void loadSceneDescriptor(uint32 resourceId); -- cgit v1.2.3