aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2011-10-11 21:24:33 +1100
committerPaul Gilbert2011-10-11 21:24:33 +1100
commit31d1385d652101bba41f19b18bd6d055874b3914 (patch)
treee9e1c084f0b19b60003dd1352a1bfcd0897d73a4
parent97e2430d0134a664e808f97039b865a52626ea7c (diff)
downloadscummvm-rg350-31d1385d652101bba41f19b18bd6d055874b3914.tar.gz
scummvm-rg350-31d1385d652101bba41f19b18bd6d055874b3914.tar.bz2
scummvm-rg350-31d1385d652101bba41f19b18bd6d055874b3914.zip
TSAGE: Bugfix for drawing UI correctly when in a side scrolling screen
-rw-r--r--engines/tsage/blue_force/blueforce_ui.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/tsage/blue_force/blueforce_ui.cpp b/engines/tsage/blue_force/blueforce_ui.cpp
index fb4008d2c1..9df5c93014 100644
--- a/engines/tsage/blue_force/blueforce_ui.cpp
+++ b/engines/tsage/blue_force/blueforce_ui.cpp
@@ -255,6 +255,10 @@ void UICollection::resetClear() {
void UICollection::draw() {
if (_visible) {
+ // Temporarily reset the sceneBounds when drawing UI elements to force them on-screen
+ Rect savedBounds = g_globals->_sceneManager._scene->_sceneBounds;
+ g_globals->_sceneManager._scene->_sceneBounds = Rect(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);
+
// Draw the elements onto the background
for (uint idx = 0; idx < _objList.size(); ++idx)
_objList[idx]->draw();
@@ -265,6 +269,7 @@ void UICollection::draw() {
Rect(0, BF_INTERFACE_Y, SCREEN_WIDTH, SCREEN_HEIGHT));
_clearScreen = 1;
+ g_globals->_sceneManager._scene->_sceneBounds = savedBounds;
}
}