aboutsummaryrefslogtreecommitdiff
path: root/engines/sword2
diff options
context:
space:
mode:
authorFilippos Karapetis2009-10-16 07:42:23 +0000
committerFilippos Karapetis2009-10-16 07:42:23 +0000
commit422b732dbadde0b23aaec05b39edec9e1c81f91e (patch)
tree80ce8d6063e6e60cd4e273210ac5bf9d66e56136 /engines/sword2
parent9934b70733f3322e1136d805f927fb0f628d1dfc (diff)
downloadscummvm-rg350-422b732dbadde0b23aaec05b39edec9e1c81f91e.tar.gz
scummvm-rg350-422b732dbadde0b23aaec05b39edec9e1c81f91e.tar.bz2
scummvm-rg350-422b732dbadde0b23aaec05b39edec9e1c81f91e.zip
Added a new convenience method to the video player, which adds the event of skipping videos with the escape key by default, thereby simplifying the video playing code in all places where it's used
svn-id: r45151
Diffstat (limited to 'engines/sword2')
-rw-r--r--engines/sword2/animation.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/engines/sword2/animation.cpp b/engines/sword2/animation.cpp
index b178bd23b6..0f3d369ee9 100644
--- a/engines/sword2/animation.cpp
+++ b/engines/sword2/animation.cpp
@@ -107,14 +107,7 @@ void MoviePlayer::play(MovieText *movieTexts, uint32 numMovieTexts, uint32 leadI
bool terminated = false;
- Common::List<Common::Event> stopEvents;
- Common::Event stopEvent;
- stopEvents.clear();
- stopEvent.type = Common::EVENT_KEYDOWN;
- stopEvent.kbd = Common::KEYCODE_ESCAPE;
- stopEvents.push_back(stopEvent);
-
- terminated = !playVideo(stopEvents);
+ terminated = !playVideo();
closeTextObject(_currentMovieText, NULL);