Compile fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33680 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -321,9 +321,9 @@ public:
|
|||||||
{
|
{
|
||||||
// note that RGB must be premultiplied by alpha
|
// note that RGB must be premultiplied by alpha
|
||||||
unsigned a = (Data::Iterator::ChannelType)((x*255.)/REAL_SIZE);
|
unsigned a = (Data::Iterator::ChannelType)((x*255.)/REAL_SIZE);
|
||||||
p.Red() = r * alpha / 256;
|
p.Red() = r * a / 256;
|
||||||
p.Green() = g * alpha / 256;
|
p.Green() = g * a / 256;
|
||||||
p.Blue() = b * alpha / 256;
|
p.Blue() = b * a / 256;
|
||||||
p.Alpha() = a;
|
p.Alpha() = a;
|
||||||
|
|
||||||
++p; // same as p.OffsetX(1)
|
++p; // same as p.OffsetX(1)
|
||||||
|
Reference in New Issue
Block a user