From 9aa07d206e679179f939e9beb0d441eb0c1a1fcb Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Sun, 20 Jul 2008 21:47:28 +0000 Subject: Rendering pipeline. Broken WIP. svn-id: r33152 --- gui/newgui.cpp | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'gui/newgui.cpp') diff --git a/gui/newgui.cpp b/gui/newgui.cpp index c4fafe7e22..e689617418 100644 --- a/gui/newgui.cpp +++ b/gui/newgui.cpp @@ -193,25 +193,22 @@ void NewGui::redraw() { switch (_redrawStatus) { case kRedrawCloseDialog: case kRedrawFull: + case kRedrawTopDialog: + warning("Full screen redraw. Oops"); _theme->clearAll(); _theme->closeAllDialogs(); - for (i = 0; i < _dialogStack.size(); i++) { - _theme->openDialog(true); + for (i = 0; i < _dialogStack.size() - 1; i++) { _dialogStack[i]->drawDialog(); } - break; case kRedrawOpenDialog: _theme->openDialog(true); + //_theme->startBuffering(); _dialogStack.top()->drawDialog(); _theme->finishBuffering(); - printf("Dialog opened!\n"); - break; - - case kRedrawTopDialog: - _dialogStack.top()->drawDialog(); - printf("Top dialog redraw!\n"); + + warning("Dialog opened"); break; default: -- cgit v1.2.3