[Scummvm-cvs-logs] scummvm master -> 32bef97bc9c2dad62ff44ad7ebc8722cafcfcda6

dreammaster dreammaster at scummvm.org
Sat Sep 24 10:49:40 CEST 2011


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
32bef97bc9 TSAGE: Bugfixes for displaying the Blue Force UI


Commit: 32bef97bc9c2dad62ff44ad7ebc8722cafcfcda6
    https://github.com/scummvm/scummvm/commit/32bef97bc9c2dad62ff44ad7ebc8722cafcfcda6
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2011-09-24T01:43:28-07:00

Commit Message:
TSAGE: Bugfixes for displaying the Blue Force UI

Changed paths:
    engines/tsage/blue_force/blueforce_ui.cpp



diff --git a/engines/tsage/blue_force/blueforce_ui.cpp b/engines/tsage/blue_force/blueforce_ui.cpp
index 15f4d99..894023f 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;
 	}
 }






More information about the Scummvm-git-logs mailing list