[Scummvm-cvs-logs] SF.net SVN: scummvm: [26775] scummvm/trunk/engines/agos/vga_e2.cpp

kirben at users.sourceforge.net kirben at users.sourceforge.net
Mon May 7 10:47:40 CEST 2007


Revision: 26775
          http://scummvm.svn.sourceforge.net/scummvm/?rev=26775&view=rev
Author:   kirben
Date:     2007-05-07 01:47:40 -0700 (Mon, 07 May 2007)

Log Message:
-----------
Fix inventory palette glitches in Elvira 2.

Modified Paths:
--------------
    scummvm/trunk/engines/agos/vga_e2.cpp

Modified: scummvm/trunk/engines/agos/vga_e2.cpp
===================================================================
--- scummvm/trunk/engines/agos/vga_e2.cpp	2007-05-07 08:29:29 UTC (rev 26774)
+++ scummvm/trunk/engines/agos/vga_e2.cpp	2007-05-07 08:47:40 UTC (rev 26775)
@@ -70,9 +70,14 @@
 
 	const uint16 *vlut = &_videoWindows[num * 4];
 	uint16 *dst = (uint16 *)getBackBuf() + vlut[0] * 8 + vlut[1] * _dxSurfacePitch / 2;
+	uint width = vlut[2] * 8;
 
+	if (getGameType() == GType_ELVIRA2 && num == 7) {
+		dst -= 4;
+		width += 4;
+	}
+
 	for (uint h = 0; h < vlut[3]; h++) {
-		uint width = vlut[2] * 8;
 		for (uint w = 0; w < width; w++) {
 			dst[w] &= 0xF0F;
 			dst[w] |= color * 16;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list