mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 00:15:30 +00:00
Fix bug #1386333: "FT DEMO: assertion triggered when playing movie".
svn-id: r20812
This commit is contained in:
parent
56a8e34407
commit
a467247e6e
@ -1329,9 +1329,19 @@ void SmushPlayer::play(const char *filename, int32 offset, int32 startFrame) {
|
||||
}
|
||||
if (_updateNeeded) {
|
||||
uint32 end_time, start_time;
|
||||
int w = _width, h = _height;
|
||||
|
||||
start_time = _vm->_system->getMillis();
|
||||
_vm->_system->copyRectToScreen(_dst, _width, 0, 0, _width, _height);
|
||||
|
||||
// Workaround for bug #1386333: "FT DEMO: assertion triggered
|
||||
// when playing movie". Some frames there are 384 x 224
|
||||
if (w > _vm->_screenWidth)
|
||||
w = _vm->_screenWidth;
|
||||
|
||||
if (h > _vm->_screenHeight)
|
||||
h = _vm->_screenHeight;
|
||||
|
||||
_vm->_system->copyRectToScreen(_dst, _width, 0, 0, w, h);
|
||||
_vm->_system->updateScreen();
|
||||
_updateNeeded = false;
|
||||
#ifdef _WIN32_WCE
|
||||
|
Loading…
x
Reference in New Issue
Block a user