ector: fix ector_color_multiply() function

This commit is contained in:
Subhransu Sekhar Mohanty 2015-04-03 16:33:49 +02:00 committed by Cedric BAIL
parent 5e5b3750c7
commit 1d0ce5bc05
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ ector_color_multiply(unsigned int c1, unsigned int c2)
{
return ( ((((((c1) >> 16) & 0xff00) * (((c2) >> 16) & 0xff00)) + 0xff0000) & 0xff000000) +
((((((c1) >> 8) & 0xff00) * (((c2) >> 16) & 0xff)) + 0xff00) & 0xff0000) +
((((((c1) & 0xff00) * ((c2) & 0xff00)) + 0xff00) >> 16) & 0xff00) +
((((((c1) & 0xff00) * ((c2) & 0xff00)) + 0xff0000) >> 16) & 0xff00) +
(((((c1) & 0xff) * ((c2) & 0xff)) + 0xff) >> 8) );
}