diff options
author | Paul Gilbert | 2011-10-11 21:24:33 +1100 |
---|---|---|
committer | Paul Gilbert | 2011-10-11 21:24:33 +1100 |
commit | 31d1385d652101bba41f19b18bd6d055874b3914 (patch) | |
tree | e9e1c084f0b19b60003dd1352a1bfcd0897d73a4 /engines | |
parent | 97e2430d0134a664e808f97039b865a52626ea7c (diff) | |
download | scummvm-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
Diffstat (limited to 'engines')
-rw-r--r-- | engines/tsage/blue_force/blueforce_ui.cpp | 5 |
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; } } |