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

wjp wjp at usecode.org
Tue Jul 3 00:02:04 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:
b091c0bd09 SCI: Remove unnecessary const-cast


Commit: b091c0bd090f075e6e0b796785c400dbe9d2b8ac
    https://github.com/scummvm/scummvm/commit/b091c0bd090f075e6e0b796785c400dbe9d2b8ac
Author: Willem Jan Palenstijn (wjp at usecode.org)
Date: 2012-07-02T15:00:48-07:00

Commit Message:
SCI: Remove unnecessary const-cast

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



diff --git a/engines/sci/engine/kvideo.cpp b/engines/sci/engine/kvideo.cpp
index 2456ba1..61d2f93 100644
--- a/engines/sci/engine/kvideo.cpp
+++ b/engines/sci/engine/kvideo.cpp
@@ -90,7 +90,7 @@ void playVideo(Video::VideoDecoder *videoDecoder, VideoState videoState) {
 	EngineState *s = g_sci->getEngineState();
 
 	if (videoDecoder->hasDirtyPalette()) {
-		byte *palette = (byte *)videoDecoder->getPalette() + s->_vmdPalStart * 3;
+		const byte *palette = videoDecoder->getPalette() + s->_vmdPalStart * 3;
 		g_system->getPaletteManager()->setPalette(palette, s->_vmdPalStart, s->_vmdPalEnd - s->_vmdPalStart);
 	}
 
@@ -108,7 +108,7 @@ void playVideo(Video::VideoDecoder *videoDecoder, VideoState videoState) {
 				}
 
 				if (videoDecoder->hasDirtyPalette()) {
-					byte *palette = (byte *)videoDecoder->getPalette() + s->_vmdPalStart * 3;
+					const byte *palette = videoDecoder->getPalette() + s->_vmdPalStart * 3;
 					g_system->getPaletteManager()->setPalette(palette, s->_vmdPalStart, s->_vmdPalEnd - s->_vmdPalStart);
 				}
 






More information about the Scummvm-git-logs mailing list