diff --git a/render/image.c b/render/image.c index e6e8b8b9..4b123040 100644 --- a/render/image.c +++ b/render/image.c @@ -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;