aboutsummaryrefslogtreecommitdiff
path: root/graphics/video
diff options
context:
space:
mode:
authorFilippos Karapetis2009-01-07 21:57:05 +0000
committerFilippos Karapetis2009-01-07 21:57:05 +0000
commit2e1fa58cf8907e344119391b830db8f6e1e1c1fa (patch)
tree4e577aeb7e4a24b88939915a6b22af5150c5bd74 /graphics/video
parent272a9d06a854aa76cfa95b7b91f1b24fccd4f308 (diff)
downloadscummvm-rg350-2e1fa58cf8907e344119391b830db8f6e1e1c1fa.tar.gz
scummvm-rg350-2e1fa58cf8907e344119391b830db8f6e1e1c1fa.tar.bz2
scummvm-rg350-2e1fa58cf8907e344119391b830db8f6e1e1c1fa.zip
Clear the screen to black before showing a video with playVideo() (it's meant to play full screen videos)
svn-id: r35776
Diffstat (limited to 'graphics/video')
-rw-r--r--graphics/video/video_player.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/graphics/video/video_player.cpp b/graphics/video/video_player.cpp
index f3d2f58ed1..6bf7a5e39d 100644
--- a/graphics/video/video_player.cpp
+++ b/graphics/video/video_player.cpp
@@ -177,6 +177,8 @@ bool VideoPlayer::playVideo(const char *filename, Common::List<Common::Event> *s
return false;
}
+ g_system->clearScreen();
+
while (getCurFrame() < getFrameCount() && !_skipVideo) {
processVideoEvents(stopEvents);