diff options
author | Paul Gilbert | 2011-09-24 18:43:28 +1000 |
---|---|---|
committer | Paul Gilbert | 2011-09-24 18:43:28 +1000 |
commit | 32bef97bc9c2dad62ff44ad7ebc8722cafcfcda6 (patch) | |
tree | 3dc037009973788fc7e0cd9f4bb56574f3e5b942 /engines/tsage | |
parent | 72f072c2d3e3c22432ee85a131198c0c06779d7c (diff) | |
download | scummvm-rg350-32bef97bc9c2dad62ff44ad7ebc8722cafcfcda6.tar.gz scummvm-rg350-32bef97bc9c2dad62ff44ad7ebc8722cafcfcda6.tar.bz2 scummvm-rg350-32bef97bc9c2dad62ff44ad7ebc8722cafcfcda6.zip |
TSAGE: Bugfixes for displaying the Blue Force UI
Diffstat (limited to 'engines/tsage')
-rw-r--r-- | engines/tsage/blue_force/blueforce_ui.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/engines/tsage/blue_force/blueforce_ui.cpp b/engines/tsage/blue_force/blueforce_ui.cpp index 15f4d99c87..894023f8f4 100644 --- a/engines/tsage/blue_force/blueforce_ui.cpp +++ b/engines/tsage/blue_force/blueforce_ui.cpp @@ -243,7 +243,8 @@ void UICollection::show() { void UICollection::erase() { if (_clearScreen) { Rect tempRect(0, BF_INTERFACE_Y, SCREEN_WIDTH, SCREEN_HEIGHT); - GLOBALS._screenSurface.fillRect(tempRect, 0); + BF_GLOBALS._screenSurface.fillRect(tempRect, 0); + BF_GLOBALS._sceneManager._scene->_backSurface.fillRect(tempRect, 0); _clearScreen = false; } } @@ -254,10 +255,15 @@ void UICollection::resetClear() { void UICollection::draw() { if (_visible) { - // Draw the elements + // Draw the elements onto the background for (uint idx = 0; idx < _objList.size(); ++idx) _objList[idx]->draw(); + // Draw the resulting UI onto the screen + BF_GLOBALS._screenSurface.copyFrom(BF_GLOBALS._sceneManager._scene->_backSurface, + Rect(0, BF_INTERFACE_Y, SCREEN_WIDTH, SCREEN_HEIGHT), + Rect(0, BF_INTERFACE_Y, SCREEN_WIDTH, SCREEN_HEIGHT)); + _clearScreen = 1; } } |