fixed off by 1 bug in converting premultiplied DIB pixel values to non-premultiplied image ones
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48580 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
4f696af8d6
commit
c8aa3d8017
1 changed files with 3 additions and 3 deletions
|
|
@ -789,9 +789,9 @@ wxImage wxDIB::ConvertToImage() const
|
|||
*alpha++ = a;
|
||||
if ( a > 0 )
|
||||
{
|
||||
dst[0] = (dst[0] * 255 - 127) / a;
|
||||
dst[1] = (dst[1] * 255 - 127) / a;
|
||||
dst[2] = (dst[2] * 255 - 127) / a;
|
||||
dst[0] = (dst[0] * 255) / a;
|
||||
dst[1] = (dst[1] * 255) / a;
|
||||
dst[2] = (dst[2] * 255) / a;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue