From 7071a95a5753861bce494f1e7906e033ce8bd7c4 Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Mon, 21 Jul 2008 21:23:23 +0000 Subject: Fixed several segfaults and graphical glitches when drawing at low resolutions. Fixed dialog stack redrawing. svn-id: r33182 --- gui/newgui.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'gui/newgui.cpp') 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; -- cgit v1.2.3