diff options
-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) { |