- Fixed: FMultiPatchTexture::CopyTrueColorPixels() set up the alpha values backwards for blend mode BLEND_OVERLAY.

SVN r3806 (trunk)
This commit is contained in:
Randy Heit 2012-08-04 03:01:17 +00:00
parent 0d631a9075
commit 4ac8f5eae4

View file

@ -608,10 +608,11 @@ int FMultiPatchTexture::CopyTrueColorPixels(FBitmap *bmp, int x, int y, int rota
} }
else else
{ {
info.blendcolor[3] = b.a * FRACUNIT / 255; fixed_t blendalpha = b.a * FRACUNIT / 255;
info.blendcolor[0] = b.r * (FRACUNIT-info.blendcolor[3]); info.blendcolor[0] = b.r * blendalpha;
info.blendcolor[1] = b.g * (FRACUNIT-info.blendcolor[3]); info.blendcolor[1] = b.g * blendalpha;
info.blendcolor[2] = b.b * (FRACUNIT-info.blendcolor[3]); info.blendcolor[2] = b.b * blendalpha;
info.blendcolor[3] = FRACUNIT - blendalpha;
info.blend = BLEND_OVERLAY; info.blend = BLEND_OVERLAY;
} }
} }