|
@@ -221,23 +221,23 @@ namespace bbiwarg.Output
|
|
|
if (color.R != 0)
|
|
|
{
|
|
|
if (color.R != byte.MaxValue)
|
|
|
- this[0] = image.Mul((float)color.R / byte.MaxValue);
|
|
|
+ this[0] = this[0].Or(image.Mul((float)color.R / byte.MaxValue));
|
|
|
else
|
|
|
- this[0] = image;
|
|
|
+ this[0] = this[0].Or(image);
|
|
|
}
|
|
|
if (color.G != 0)
|
|
|
{
|
|
|
if (color.G != byte.MaxValue)
|
|
|
- this[1] = image.Mul((float)color.G / byte.MaxValue);
|
|
|
+ this[1] = this[1].Or(image.Mul((float)color.G / byte.MaxValue));
|
|
|
else
|
|
|
- this[1] = image;
|
|
|
+ this[1] = this[1].Or(image);
|
|
|
}
|
|
|
if (color.B != 0)
|
|
|
{
|
|
|
if (color.B != byte.MaxValue)
|
|
|
- this[2] = image.Mul((float)color.B / byte.MaxValue);
|
|
|
+ this[2] = this[2].Or(image.Mul((float)color.B / byte.MaxValue));
|
|
|
else
|
|
|
- this[2] = image;
|
|
|
+ this[2] = this[2].Or(image);
|
|
|
}
|
|
|
}
|
|
|
}
|