diff options
| author | Vicent Marti | 2008-07-21 21:23:23 +0000 | 
|---|---|---|
| committer | Vicent Marti | 2008-07-21 21:23:23 +0000 | 
| commit | 7071a95a5753861bce494f1e7906e033ce8bd7c4 (patch) | |
| tree | 3b13f55b2067d8aa7e860c6e381e802f8bd35aff /gui/newgui.cpp | |
| parent | c7b624d91eaa0444fdc454dfb5c5dd7beaa56bcc (diff) | |
| download | scummvm-rg350-7071a95a5753861bce494f1e7906e033ce8bd7c4.tar.gz scummvm-rg350-7071a95a5753861bce494f1e7906e033ce8bd7c4.tar.bz2 scummvm-rg350-7071a95a5753861bce494f1e7906e033ce8bd7c4.zip | |
Fixed several segfaults and graphical glitches when drawing at low resolutions. Fixed dialog stack redrawing.
svn-id: r33182
Diffstat (limited to 'gui/newgui.cpp')
| -rw-r--r-- | gui/newgui.cpp | 8 | 
1 files changed, 5 insertions, 3 deletions
| diff --git a/gui/newgui.cpp b/gui/newgui.cpp index acbf14cae2..b9b4fa028f 100644 --- a/gui/newgui.cpp +++ b/gui/newgui.cpp @@ -195,15 +195,17 @@ void NewGui::redraw() {  		case kRedrawFull:  		case kRedrawTopDialog:  			_theme->clearAll(); -			_theme->closeAllDialogs(); +			_theme->openDialog(true);  			for (i = 0; i < _dialogStack.size() - 1; i++) { -				_dialogStack[i]->drawDialog(); +				_dialogStack[i]->drawDialog();	  			} +			_theme->finishBuffering(); +			_theme->updateScreen(); +  		case kRedrawOpenDialog:  			_theme->openDialog(true); -			//_theme->startBuffering();  			_dialogStack.top()->drawDialog();  			_theme->finishBuffering();  			break; | 
