mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 05:38:56 +00:00
PEGASUS: Fix frames after turning
This commit is contained in:
parent
e1dc4db7aa
commit
8a717d28d8
@ -177,6 +177,17 @@ void Movie::pause() {
|
||||
TimeBase::pause();
|
||||
}
|
||||
|
||||
TimeValue Movie::getDuration(const TimeScale scale) const {
|
||||
// Unlike TimeBase::getDuration(), this returns the whole duration of the movie
|
||||
// The original source has a TODO to make this behave like TimeBase::getDuration(),
|
||||
// but the problem is that too much code requires this function to behave this way...
|
||||
|
||||
if (_video)
|
||||
return _video->getDuration() * ((scale == 0) ? getScale() : scale) / 1000;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void Movie::checkCallBacks() {
|
||||
TimeBase::checkCallBacks();
|
||||
|
||||
|
@ -64,6 +64,8 @@ public:
|
||||
|
||||
virtual void moveMovieBoxTo(const tCoordType, const tCoordType);
|
||||
|
||||
virtual TimeValue getDuration(const TimeScale = 0) const;
|
||||
|
||||
// *** HACK ALERT
|
||||
Video::SeekableVideoDecoder *getMovie() { return _video; }
|
||||
void setVolume(uint16);
|
||||
|
Loading…
Reference in New Issue
Block a user