Short version of average16 added.

svn path=/trunk/; revision=35130
This commit is contained in:
Matthias Kupfer 2008-08-05 16:40:24 +00:00
parent c20321a3f6
commit 305fa7aff9

View file

@ -499,7 +499,8 @@ __inline PIXEL average16(PIXEL a, PIXEL b)
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!