fixed dialog redrawing (when you switched in the save/load dialog between save and load mode, it would loose the transparency)

svn-id: r5512
This commit is contained in:
Max Horn 2002-11-10 19:39:32 +00:00
parent 843fa5f753
commit bc883a5f1a
3 changed files with 7 additions and 1 deletions

View file

@ -96,6 +96,11 @@ void Dialog::close()
}
void Dialog::draw()
{
_gui->_needRedraw = true;
}
void Dialog::drawDialog()
{
Widget *w = _firstWidget;

View file

@ -64,6 +64,7 @@ protected:
virtual void close();
virtual void draw();
virtual void drawDialog();
virtual void handleTickle(); // Called periodically (in every guiloop() )
virtual void handleMouseDown(int x, int y, int button, int clickCount);

View file

@ -119,7 +119,7 @@ void NewGui::runLoop()
_system->clear_overlay();
_system->grab_overlay(_screen, _screenPitch);
for (int i = 0; i < _dialogStack.size(); i++)
_dialogStack[i]->draw();
_dialogStack[i]->drawDialog();
_needRedraw = false;
}