[Scummvm-cvs-logs] CVS: scummvm/scumm gfx.cpp,2.43,2.44

Jonathan Gray khalek at users.sourceforge.net
Thu Apr 10 05:21:06 CEST 2003


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv6197

Modified Files:
	gfx.cpp 
Log Message:
use shadowPalette for ega stuff

Index: gfx.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/gfx.cpp,v
retrieving revision 2.43
retrieving revision 2.44
diff -u -d -r2.43 -r2.44
--- gfx.cpp	10 Apr 2003 11:34:51 -0000	2.43
+++ gfx.cpp	10 Apr 2003 12:20:36 -0000	2.44
@@ -1055,9 +1055,9 @@
 				for(int z = 0; z < run; z++) {
 
 					if(z & 1) {
-						*(dst + y * _vm->_realWidth + x) = color & 0xf;
+						*(dst + y * _vm->_realWidth + x) = _vm->_shadowPalette[color & 0xf];
 					} else {
-						*(dst + y * _vm->_realWidth + x) = color >> 4;
+						*(dst + y * _vm->_realWidth + x) = _vm->_shadowPalette[color >> 4];
 					}
 
 					y++;
@@ -1087,7 +1087,7 @@
 			}
 			
 			for(int z = 0; z < run; z++) {
-				*(dst + y * _vm->_realWidth + x) = color & 0xf;
+				*(dst + y * _vm->_realWidth + x) = _vm->_shadowPalette[color & 0xf];
 				y++;
 
 				if(y >= height){





More information about the Scummvm-git-logs mailing list