diff options
author | dhewg | 2011-02-26 11:58:41 +0100 |
---|---|---|
committer | dhewg | 2011-02-26 11:58:41 +0100 |
commit | bd191e178733dbf49b5b9b8394b8f0554fc6127b (patch) | |
tree | ab1626c923bd59386cff4023933a9248acb3112d /engines | |
parent | 3fb85835a10eb75c7a5b2f40504004abd94c73c3 (diff) | |
download | scummvm-rg350-bd191e178733dbf49b5b9b8394b8f0554fc6127b.tar.gz scummvm-rg350-bd191e178733dbf49b5b9b8394b8f0554fc6127b.tar.bz2 scummvm-rg350-bd191e178733dbf49b5b9b8394b8f0554fc6127b.zip |
AGOS: Respect the screen pitch for movies
Fixes DXA and Smacker movies on Android
Diffstat (limited to 'engines')
-rw-r--r-- | engines/agos/animation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/agos/animation.cpp b/engines/agos/animation.cpp index d39ca377dc..10d3d7f1ff 100644 --- a/engines/agos/animation.cpp +++ b/engines/agos/animation.cpp @@ -368,7 +368,7 @@ void MoviePlayerDXA::handleNextFrame() { bool MoviePlayerDXA::processFrame() { Graphics::Surface *screen = _vm->_system->lockScreen(); - copyFrameToBuffer((byte *)screen->pixels, (_vm->_screenWidth - getWidth()) / 2, (_vm->_screenHeight - getHeight()) / 2, _vm->_screenWidth); + copyFrameToBuffer((byte *)screen->pixels, (_vm->_screenWidth - getWidth()) / 2, (_vm->_screenHeight - getHeight()) / 2, screen->pitch); _vm->_system->unlockScreen(); Common::Rational soundTime(_mixer->getSoundElapsedTime(_bgSound), 1000); @@ -482,7 +482,7 @@ void MoviePlayerSMK::nextFrame() { bool MoviePlayerSMK::processFrame() { Graphics::Surface *screen = _vm->_system->lockScreen(); - copyFrameToBuffer((byte *)screen->pixels, (_vm->_screenWidth - getWidth()) / 2, (_vm->_screenHeight - getHeight()) / 2, _vm->_screenWidth); + copyFrameToBuffer((byte *)screen->pixels, (_vm->_screenWidth - getWidth()) / 2, (_vm->_screenHeight - getHeight()) / 2, screen->pitch); _vm->_system->unlockScreen(); uint32 waitTime = getTimeToNextFrame(); |