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

bluegr md5 at scummvm.org
Wed Jun 20 11:32:51 CEST 2012


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:
c27741ac3b SCI: Implement kRemapColors(5 - set color intensity)


Commit: c27741ac3bb356eecb6b3f9abd1e74cb981ffbed
    https://github.com/scummvm/scummvm/commit/c27741ac3bb356eecb6b3f9abd1e74cb981ffbed
Author: Filippos Karapetis (md5 at scummvm.org)
Date: 2012-06-20T02:31:51-07:00

Commit Message:
SCI: Implement kRemapColors(5 - set color intensity)

It's finally nighttime in the first murder scene in PQ4

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



diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp
index 8f4d99f..459766c 100644
--- a/engines/sci/engine/kgraphics.cpp
+++ b/engines/sci/engine/kgraphics.cpp
@@ -1237,7 +1237,8 @@ reg_t kRemapColors(EngineState *s, int argc, reg_t *argv) {
 		uint16 percent = argv[2].toUint16(); // 0 - 100
 		if (argc >= 4)
 			warning("RemapByPercent called with 4 parameters, unknown parameter is %d", argv[3].toUint16());
-		g_sci->_gfxPalette->kernelSetIntensity(color, 255, percent, false);
+		// TODO: It's not correct to set intensity here
+		//g_sci->_gfxPalette->kernelSetIntensity(color, 255, percent, false);
 		}
 		break;
 	case 3:	{ // remap to gray
@@ -1257,10 +1258,10 @@ reg_t kRemapColors(EngineState *s, int argc, reg_t *argv) {
 		kStub(s, argc, argv);
 		}
 		break;
-	case 5:	{ // increment color
-		//int16 unk1 = argv[1].toSint16();
-		//uint16 unk2 = argv[2].toUint16();
-		kStub(s, argc, argv);
+	case 5:	{ // set color intensity
+		int16 color = argv[1].toSint16();
+		uint16 intensity = argv[2].toUint16();
+		g_sci->_gfxPalette->kernelSetIntensity(color, 255, intensity, true);
 		}
 		break;
 	default:






More information about the Scummvm-git-logs mailing list