[Scummvm-cvs-logs] SF.net SVN: scummvm: [22464] residual/trunk/driver_gl.cpp

aquadran at users.sourceforge.net aquadran at users.sourceforge.net
Sun May 14 01:02:00 CEST 2006


Revision: 22464
Author:   aquadran
Date:     2006-05-14 01:01:53 -0700 (Sun, 14 May 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=22464&view=rev

Log Message:
-----------
ops

Modified Paths:
--------------
    residual/trunk/driver_gl.cpp
Modified: residual/trunk/driver_gl.cpp
===================================================================
--- residual/trunk/driver_gl.cpp	2006-05-14 07:51:41 UTC (rev 22463)
+++ residual/trunk/driver_gl.cpp	2006-05-14 08:01:53 UTC (rev 22464)
@@ -742,11 +742,10 @@
 			uint8 r = (pixel & 0xFF0000) >> 16;
 			uint8 g = (pixel & 0x00FF00) >> 8;
 			uint8 b = (pixel & 0x0000FF);
-			uint32 color = (r + g + b) / 3;
 			int pos = step / w;
 			int wpos = step - pos * w;
 			// source is upside down, flip appropriately while storing
-			buffer[h * w - (pos * w + w - wpos)] = ((color & 0xF8) << 8) | ((color & 0xFC) << 3) | (color >> 3);
+			buffer[h * w - (pos * w + w - wpos)] = ((r & 0xF8) << 8) | ((g & 0xFC) << 3) | (b >> 3);
 			step++;
 		}
 	}


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