]> Dogcows Code - chaz/openbox/commitdiff
don't need to &0xff
authorMikael Magnusson <mikachu@comhem.se>
Tue, 29 May 2007 03:46:38 +0000 (03:46 +0000)
committerMikael Magnusson <mikachu@comhem.se>
Tue, 29 May 2007 03:46:38 +0000 (03:46 +0000)
render/image.c

index e6e8b8b932f185a9d768592f8a83d8e9cfdca761..4b1230406fc2a171b5f4bdbad3b67a3cc38aa332 100644 (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;
This page took 0.024089 seconds and 4 git commands to generate.