SWORD25: Fix vectorimage transparency

svn-id: r53343
This commit is contained in:
Eugene Sandulenko 2010-09-13 20:57:14 +00:00
parent 099406e15e
commit 0716b8c1bb

View File

@ -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);
}
}