[Scummvm-cvs-logs] CVS: scummvm/sword2 controls.cpp,1.90,1.91

Torbjörn Andersson eriktorbjorn at users.sourceforge.net
Sun Jun 5 10:30:56 CEST 2005


Update of /cvsroot/scummvm/scummvm/sword2
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5354

Modified Files:
	controls.cpp 
Log Message:
Removed an old hack that I don't think is needed any more. Clear screen
when the dialog window is removed.


Index: controls.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword2/controls.cpp,v
retrieving revision 1.90
retrieving revision 1.91
diff -u -d -r1.90 -r1.91
--- controls.cpp	12 May 2005 13:12:00 -0000	1.90
+++ controls.cpp	5 Jun 2005 17:30:20 -0000	1.91
@@ -250,20 +250,17 @@
 	: _numWidgets(0), _finish(false), _result(0), _vm(vm) {
 	_vm->_screen->setFullPalette(CONTROL_PANEL_PALETTE);
 	_vm->_screen->clearScene();
+	_vm->_screen->updateDisplay();
 
 	// Usually the mouse pointer will already be "normal", but not always.
 	_vm->_mouse->setMouse(NORMAL_MOUSE_ID);
-
-	// HACK: Since the dialogs don't do normal scene updates we need to
-	// trigger a full redraw manually.
-
-	_vm->_screen->setNeedFullRedraw();
-	_vm->_screen->updateDisplay();
 }
 
 Dialog::~Dialog() {
 	for (int i = 0; i < _numWidgets; i++)
 		delete _widgets[i];
+	_vm->_screen->clearScene();
+	_vm->_screen->updateDisplay();
 }
 
 void Dialog::registerWidget(Widget *widget) {





More information about the Scummvm-git-logs mailing list