From: Mikael Magnusson Date: Tue, 29 May 2007 03:46:38 +0000 (+0000) Subject: don't need to &0xff X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=1188d9b0f6b806887a4686e985beb3f9aa325212;p=chaz%2Fopenbox don't need to &0xff --- 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;