mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-02 17:03:13 +00:00
MOHAWK: hide overlay when movie is skipped
This commit is contained in:
parent
e9f995a959
commit
b17b1d3250
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user