projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e5b375
)
ector: fix ector_color_multiply() function
author
Subhransu Sekhar Mohanty
<sub.mohanty@samsung.com>
Fri, 3 Apr 2015 14:33:49 +0000
(16:33 +0200)
committer
Cedric BAIL
<cedric@osg.samsung.com>
Fri, 3 Apr 2015 14:33:49 +0000
(16:33 +0200)
src/lib/ector/ector_util.h
patch
|
blob
|
history
diff --git
a/src/lib/ector/ector_util.h
b/src/lib/ector/ector_util.h
index 664fdb2b6d1646f7ea3fffb775140516b907fb2e..af8b5917d5bcf34d5a4aea3933c03cf512641f40 100644
(file)
--- a/
src/lib/ector/ector_util.h
+++ b/
src/lib/ector/ector_util.h
@@
-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)) + 0xff00
00
) >> 16) & 0xff00) +
(((((c1) & 0xff) * ((c2) & 0xff)) + 0xff) >> 8) );
}