mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-24 11:36:22 +00:00
SWORD25: Fix vectorimage transparency
svn-id: r53343
This commit is contained in:
parent
099406e15e
commit
0716b8c1bb
@ -67,7 +67,8 @@ void art_rgb_run_alpha1(art_u8 *buf, art_u8 r, art_u8 g, art_u8 b, int alpha, in
|
||||
v = *buf;
|
||||
*buf++ = v + (((r - v) * alpha + 0x80) >> 8);
|
||||
v = *buf;
|
||||
*buf++ = v + (((alpha - v) * alpha + 0x80) >> 8);
|
||||
// FIXME: Is this correct?
|
||||
*buf++ = MIN(v + alpha, 0xff);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user