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:
Vadim Zeitlin
2007-09-05 22:58:27 +00:00
parent 4f696af8d6
commit c8aa3d8017

View File

@@ -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;
}
}