[Scummvm-cvs-logs] scummvm master -> 3d50c11071ee6b89fb11cda961b6f3cfb7c92f80

dreammaster dreammaster at scummvm.org
Sun Mar 17 21:29:19 CET 2013


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:
3d50c11071 HOPKINS: Fix corrupted frame at end of bank attack animation


Commit: 3d50c11071ee6b89fb11cda961b6f3cfb7c92f80
    https://github.com/scummvm/scummvm/commit/3d50c11071ee6b89fb11cda961b6f3cfb7c92f80
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2013-03-17T13:28:20-07:00

Commit Message:
HOPKINS: Fix corrupted frame at end of bank attack animation

Changed paths:
    engines/hopkins/hopkins.cpp



diff --git a/engines/hopkins/hopkins.cpp b/engines/hopkins/hopkins.cpp
index 2821746..64a6c05 100644
--- a/engines/hopkins/hopkins.cpp
+++ b/engines/hopkins/hopkins.cpp
@@ -834,6 +834,7 @@ bool HopkinsEngine::runFull() {
 
 		case 3:
 			if (!_globals._saveData->_data[svBankAttackAnimPlayedFl]) {
+				// Play the bank attack animation
 				_soundManager.playSound(3);
 				if (getPlatform() == Common::kPlatformOS2 || getPlatform() == Common::kPlatformBeOS)
 					_graphicsManager.loadImage("fond");
@@ -865,13 +866,20 @@ bool HopkinsEngine::runFull() {
 				} else {
 					_animationManager.playAnim("BANQUE.ANM", 200, 28, 200);
 				}
+
 				_soundManager._specialSoundNum = 0;
 				_soundManager.removeSample(1);
 				_soundManager.removeSample(2);
 				_soundManager.removeSample(3);
 				_soundManager.removeSample(4);
-				if (getPlatform() != Common::kPlatformLinux)
+
+				if (getPlatform() != Common::kPlatformLinux) {
+					// Copy the end of the animation into the secondary buffer and fade out the screen
+					Common::fill(_graphicsManager._vesaBuffer, _graphicsManager._vesaBuffer +
+						SCREEN_WIDTH * 2 * SCREEN_HEIGHT, 0);
 					_graphicsManager.fadeOutLong();
+				}
+
 				_globals._saveData->_data[svBankAttackAnimPlayedFl] = 1;
 			}
 			_linesManager.setMaxLineIdx(5);






More information about the Scummvm-git-logs mailing list