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/sfuncs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'saga/sfuncs.cpp') diff --git a/saga/sfuncs.cpp b/saga/sfuncs.cpp index 286fd20901..d69e67be30 100644 --- a/saga/sfuncs.cpp +++ b/saga/sfuncs.cpp @@ -1289,7 +1289,7 @@ void Script::sfPlacard(SCRIPTFUNC_PARAMS) { event.data = backBuffer; event.param = 138; event.param2 = 0; - event.param3 = _vm->getSceneHeight(); + event.param3 = _vm->_scene->getHeight(); event.param4 = 0; event.param5 = _vm->getDisplayWidth(); @@ -1306,7 +1306,7 @@ void Script::sfPlacard(SCRIPTFUNC_PARAMS) { textEntry.color = kITEColorBrightWhite; textEntry.effectColor = kITEColorBlack; textEntry.point.x = _vm->getDisplayWidth() / 2; - textEntry.point.y = (_vm->getSceneHeight() - _vm->_font->getHeight(kMediumFont)) / 2; + textEntry.point.y = (_vm->_scene->getHeight() - _vm->_font->getHeight(kMediumFont)) / 2; textEntry.fontId = kMediumFont; textEntry.flags = (FontEffectFlags)(kFontOutline | kFontCentered); textEntry.text = thread->_strings->getString(stringId); -- cgit v1.2.3