diff options
author | Torbjörn Andersson | 2005-06-05 17:30:20 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2005-06-05 17:30:20 +0000 |
commit | 050a1eaace702a930104c0f0613d958f9f2e1123 (patch) | |
tree | 7cb571af0f59caa02fa17cadecf6497eed8512a5 | |
parent | 6128bb05e3108671d3a687acef17904a8460c5a7 (diff) | |
download | scummvm-rg350-050a1eaace702a930104c0f0613d958f9f2e1123.tar.gz scummvm-rg350-050a1eaace702a930104c0f0613d958f9f2e1123.tar.bz2 scummvm-rg350-050a1eaace702a930104c0f0613d958f9f2e1123.zip |
Removed an old hack that I don't think is needed any more. Clear screen
when the dialog window is removed.
svn-id: r18359
-rw-r--r-- | sword2/controls.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sword2/controls.cpp b/sword2/controls.cpp index ac43e8f87c..d4817153b8 100644 --- a/sword2/controls.cpp +++ b/sword2/controls.cpp @@ -250,20 +250,17 @@ Dialog::Dialog(Sword2Engine *vm) : _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) { |