From 23892e76cf020549e2e51fddb451e6ee0e8f324d Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 19 Jul 2014 14:40:33 -0400 Subject: MADS: Remove redundant saved surface from FullScreenDialog base class --- engines/mads/nebular/dialogs_nebular.cpp | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'engines/mads/nebular/dialogs_nebular.cpp') diff --git a/engines/mads/nebular/dialogs_nebular.cpp b/engines/mads/nebular/dialogs_nebular.cpp index d1fc47e0e7..5a9cacddef 100644 --- a/engines/mads/nebular/dialogs_nebular.cpp +++ b/engines/mads/nebular/dialogs_nebular.cpp @@ -529,7 +529,6 @@ FullScreenDialog::FullScreenDialog(MADSEngine *vm) : _vm(vm) { } FullScreenDialog::~FullScreenDialog() { - _savedSurface.free(); } void FullScreenDialog::display() { @@ -569,19 +568,12 @@ void FullScreenDialog::display() { _vm->_screen.hLine(0, 20, MADS_SCREEN_WIDTH, 2); _vm->_screen.hLine(0, 179, MADS_SCREEN_WIDTH, 2); - game._fx = _vm->_screenFade == SCREEN_FADE_SMOOTH ? kTransitionFadeIn : kCenterVertTransition; - _vm->_screen.copyTo(&_savedSurface); - /* - _vm->_screen.hLine(0, 0, MADS_SCREEN_WIDTH, 2); _vm->_screen.copyRectToScreen(Common::Rect(0, _vm->_screen._offset.y, - MADS_SCREEN_WIDTH, _vm->_screen._offset.y + 1)); + MADS_SCREEN_WIDTH, _vm->_screen._offset.y + 1)); _vm->_screen.copyRectToScreen(Common::Rect(0, _vm->_screen._offset.y + 157, - MADS_SCREEN_WIDTH, _vm->_screen._offset.y + 157)); - */ - - game._fx = _vm->_screenFade == SCREEN_FADE_SMOOTH ? - kCenterVertTransition : kTransitionFadeIn; + MADS_SCREEN_WIDTH, _vm->_screen._offset.y + 157)); + game._fx = _vm->_screenFade == SCREEN_FADE_SMOOTH ? kTransitionFadeIn : kCenterVertTransition; game._trigger = 0; _vm->_palette->setEntry(10, 0, 63, 0); -- cgit v1.2.3