[ros-diffs] [mkupfer] 35130: Short version of average16 added.

mkupfer at svn.reactos.org mkupfer at svn.reactos.org
Tue Aug 5 18:40:25 CEST 2008


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/dib/dib16bpp.c?rev=35130&r1=35129&r2=35130&view=diff
==============================================================================
--- 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!



More information about the Ros-diffs mailing list