don't need to &0xff

This commit is contained in:
Mikael Magnusson 2007-05-29 03:46:38 +00:00
parent cb5cc0d7ac
commit 1188d9b0f6

View file

@ -153,7 +153,7 @@ void RrImageDraw(RrPixel32 *target, RrTextureRGBA *rgba,
guchar alpha, r, g, b, bgr, bgg, bgb;
/* apply the rgba's opacity as well */
alpha = (((*source >> RrDefaultAlphaOffset) * rgba->alpha) >> 8)&0xff;
alpha = ((*source >> RrDefaultAlphaOffset) * rgba->alpha) >> 8;
r = *source >> RrDefaultRedOffset;
g = *source >> RrDefaultGreenOffset;
b = *source >> RrDefaultBlueOffset;