[Scummvm-cvs-logs] scummvm master -> 03754d4127bc90571aa70b455c4ddd900ddea5e0

bluegr bluegr at gmail.com
Tue Mar 1 03:21:23 CET 2016


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:
03754d4127 SCI32: Warn when the unhandled parameter is set in kPalVarySetPercent


Commit: 03754d4127bc90571aa70b455c4ddd900ddea5e0
    https://github.com/scummvm/scummvm/commit/03754d4127bc90571aa70b455c4ddd900ddea5e0
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2016-03-01T04:21:09+02:00

Commit Message:
SCI32: Warn when the unhandled parameter is set in kPalVarySetPercent

Changed paths:
    engines/sci/engine/kgraphics32.cpp



diff --git a/engines/sci/engine/kgraphics32.cpp b/engines/sci/engine/kgraphics32.cpp
index 78afa18..2be47b8 100644
--- a/engines/sci/engine/kgraphics32.cpp
+++ b/engines/sci/engine/kgraphics32.cpp
@@ -800,6 +800,8 @@ reg_t kPalVarySetPercent(EngineState *s, int argc, reg_t *argv) {
 	int16 percent = argc > 1 ? argv[1].toSint16() : 0;
 	// TODO: GK1 adds a third optional parameter here, at the end of chapter 1
 	// (during the sunset/sunrise sequence, the parameter is 1)
+	if (argc > 2)
+		warning("kPalVarySetPercent: third parameter passed: %d", argv[2].toSint16());
 	g_sci->_gfxPalette32->setVaryPercent(percent, time, -1, -1);
 	return NULL_REG;
 }






More information about the Scummvm-git-logs mailing list