[Scummvm-cvs-logs] CVS: residual driver_tinygl.cpp,1.10,1.11

Pawel Kolodziejski aquadran at users.sourceforge.net
Sun Mar 20 09:56:42 CET 2005


Update of /cvsroot/scummvm/residual
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32607

Modified Files:
	driver_tinygl.cpp 
Log Message:
correct color conversion format

Index: driver_tinygl.cpp
===================================================================
RCS file: /cvsroot/scummvm/residual/driver_tinygl.cpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- driver_tinygl.cpp	20 Mar 2005 14:03:08 -0000	1.10
+++ driver_tinygl.cpp	20 Mar 2005 17:56:14 -0000	1.11
@@ -417,8 +417,8 @@
 		} else if (pixel == 0x80) {
 			*texDataPtr = 0;
 		} else if (pixel == 0xFF) {
-			WRITE_LE_UINT16(texDataPtr, ((fgColor.red() & 0x7) << 8) |
-				((fgColor.green() & 0x3) << 3) | ((fgColor.blue() & 0x7) >> 3));
+			WRITE_LE_UINT16(texDataPtr, ((fgColor.red() & 0xF8) << 8) |
+				((fgColor.green() & 0xFC) << 3) | (fgColor.blue() >> 3));
 		}
 	}
 





More information about the Scummvm-git-logs mailing list