mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-31 07:53:36 +00:00
Actually drop the DXA frame (i.e. don't update the screen) when we say we do.
svn-id: r27053
This commit is contained in:
parent
89abea6b51
commit
475abaf9dc
@ -230,8 +230,7 @@ void MoviePlayer::nextFrame() {
|
||||
|
||||
void MoviePlayer::handleNextFrame() {
|
||||
decodeNextFrame();
|
||||
processFrame();
|
||||
|
||||
if (processFrame())
|
||||
_vm->_system->updateScreen();
|
||||
_frameNum++;
|
||||
|
||||
@ -285,7 +284,7 @@ void MoviePlayer::setPalette(byte *pal) {
|
||||
_vm->_system->setPalette(palette, 0, 256);
|
||||
}
|
||||
|
||||
void MoviePlayer::processFrame() {
|
||||
bool MoviePlayer::processFrame() {
|
||||
copyFrameToBuffer(_vm->getFrontBuf(), (_vm->_screenWidth - _width) / 2, (_vm->_screenHeight - _height) / 2, _vm->_screenWidth);
|
||||
_vm->_system->copyRectToScreen(_vm->getFrontBuf(), _vm->_screenWidth, 0, 0, _vm->_screenWidth, _vm->_screenHeight);
|
||||
|
||||
@ -309,10 +308,13 @@ void MoviePlayer::processFrame() {
|
||||
while (_vm->_system->getMillis() < _ticks)
|
||||
_vm->_system->delayMillis(10);
|
||||
}
|
||||
} else {
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
warning("dropped frame %i", _frameNum);
|
||||
_frameSkipped++;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
const char * MoviePlayer::_sequenceList[90] = {
|
||||
|
@ -64,7 +64,7 @@ private:
|
||||
void playOmniTV();
|
||||
|
||||
void handleNextFrame();
|
||||
void processFrame();
|
||||
bool processFrame();
|
||||
void startSound();
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user