[Webkit-unassigned] [Bug 22150] Color.cpp gives wrong colors for alpha < 1

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 30 02:43:06 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=22150


ariya.hidayat at trolltech.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ariya.hidayat at trolltech.com




------- Comment #5 from ariya.hidayat at trolltech.com  2009-04-30 02:43 PDT -------
Seems to be precision problem. For example, if alpha is 1.0/255.0, when the
last few digits are stripped (i.e. the value is truncated), multiplying back to
255 does not give 1.0, but rather 0.99998. Static casting it back to integer
gives 0, instead of 1.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list