[Scummvm-git-logs] scummvm master -> b17b1d325098fb7993e15a3be224ab21f2d9f3fb
bluegr
noreply at scummvm.org
Tue Oct 4 17:37:14 UTC 2022
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
b17b1d3250 MOHAWK: hide overlay when movie is skipped
Commit: b17b1d325098fb7993e15a3be224ab21f2d9f3fb
https://github.com/scummvm/scummvm/commit/b17b1d325098fb7993e15a3be224ab21f2d9f3fb
Author: BLooperZ (blooperz at users.noreply.github.com)
Date: 2022-10-04T20:37:09+03:00
Commit Message:
MOHAWK: hide overlay when movie is skipped
Changed paths:
engines/mohawk/video.cpp
diff --git a/engines/mohawk/video.cpp b/engines/mohawk/video.cpp
index 222a787a7b0..49885190933 100644
--- a/engines/mohawk/video.cpp
+++ b/engines/mohawk/video.cpp
@@ -51,6 +51,7 @@ VideoEntry::~VideoEntry() {
}
void VideoEntry::close() {
+ g_system->hideOverlay();
delete _video;
_video = nullptr;
}
@@ -194,13 +195,12 @@ VideoEntryPtr VideoManager::playMovie(uint16 id) {
bool VideoManager::updateMovies() {
bool updateScreen = false;
- g_system->showOverlay();
- g_system->clearOverlay();
-
for (VideoList::iterator it = _videos.begin(); it != _videos.end(); ) {
+ g_system->showOverlay();
+ g_system->clearOverlay();
+
// Check of the video has reached the end
if ((*it)->endOfVideo()) {
- g_system->hideOverlay();
if ((*it)->isLooping()) {
// Seek back if looping
(*it)->seek((*it)->getStart());
More information about the Scummvm-git-logs
mailing list