mirror of
https://github.com/reactos/reactos.git
synced 2024-09-10 04:42:00 +00:00
Short version of average16 added.
svn path=/trunk/; revision=35130
This commit is contained in:
parent
c20321a3f6
commit
305fa7aff9
|
@ -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!
|
||||
|
|
Loading…
Reference in a new issue