EMI: Hide subtitle when stopping movie playback

This commit is contained in:
Ingo van Lil 2014-01-12 01:34:45 +01:00 committed by Joel Teichroeb
parent 1891f4c9a4
commit 4a87ea3962
2 changed files with 6 additions and 0 deletions

View File

@ -52,6 +52,11 @@ bool BinkPlayer::bikCheck(Common::SeekableReadStream *stream, uint32 pos) {
return (tag & 0xFFFFFF00) == MKTAG('B', 'I', 'K', 0); return (tag & 0xFFFFFF00) == MKTAG('B', 'I', 'K', 0);
} }
void BinkPlayer::deinit() {
g_grim->setMovieSubtitle(NULL);
MoviePlayer::deinit();
}
void BinkPlayer::handleFrame() { void BinkPlayer::handleFrame() {
MoviePlayer::handleFrame(); MoviePlayer::handleFrame();

View File

@ -49,6 +49,7 @@ private:
bool loadFile(const Common::String &filename); bool loadFile(const Common::String &filename);
bool _demo; bool _demo;
bool bikCheck(Common::SeekableReadStream *stream, uint32 pos); bool bikCheck(Common::SeekableReadStream *stream, uint32 pos);
virtual void deinit() override;
virtual void handleFrame(); virtual void handleFrame();
}; };