Author: mkupfer
Date: Tue Aug 5 11:40:24 2008
New Revision: 35130
URL:
http://svn.reactos.org/svn/reactos?rev=35130&view=rev
Log:
Short version of average16 added.
Modified:
trunk/reactos/subsystems/win32/win32k/dib/dib16bpp.c
Modified: trunk/reactos/subsystems/win32/win32k/dib/dib16bpp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/di…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/dib/dib16bpp.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/dib/dib16bpp.c [iso-8859-1] Tue Aug 5 11:40:24
2008
@@ -499,7 +499,8 @@
return res;
*/
- return a; // FIXME: Depend on SetStretchMode
+ // This one is the short form of the correct one ;-)
+ return (((a ^ b) & 0xf7deU) >> 1) + (a & b);
}
//NOTE: If you change something here, please do the same in other dibXXbpp.c files!