[Scummvm-cvs-logs] scummvm master -> bd191e178733dbf49b5b9b8394b8f0554fc6127b

dhewg dhewg at wiibrew.org
Sat Feb 26 12:13:57 CET 2011


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
bd191e1787 AGOS: Respect the screen pitch for movies


Commit: bd191e178733dbf49b5b9b8394b8f0554fc6127b
    https://github.com/scummvm/scummvm/commit/bd191e178733dbf49b5b9b8394b8f0554fc6127b
Author: dhewg (dhewg at wiibrew.org)
Date: 2011-02-26T02:58:41-08:00

Commit Message:
AGOS: Respect the screen pitch for movies

Fixes DXA and Smacker movies on Android

Changed paths:
    engines/agos/animation.cpp



diff --git a/engines/agos/animation.cpp b/engines/agos/animation.cpp
index d39ca37..10d3d7f 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();






More information about the Scummvm-git-logs mailing list