mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 23:01:59 +00:00
- Fixed: FMultiPatchTexture::CopyTrueColorPixels() set up the alpha values backwards for blend mode BLEND_OVERLAY.
SVN r3806 (trunk)
This commit is contained in:
parent
0d631a9075
commit
4ac8f5eae4
1 changed files with 5 additions and 4 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue