]> Dogcows Code - chaz/openbox/commitdiff
it doesn't work but its something
authorDana Jansens <danakj@orodu.net>
Tue, 29 May 2007 03:31:25 +0000 (03:31 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 29 May 2007 03:31:25 +0000 (03:31 +0000)
render/image.c

index 3c08444db14116ddf32f604fcc7d262cb8711358..1e76e6ba350bd46526d78007591107c6e5484111 100644 (file)
@@ -152,7 +152,8 @@ void RrImageDraw(RrPixel32 *target, RrTextureRGBA *rgba,
     while (num_pixels-- > 0) {
         guchar alpha, r, g, b, bgr, bgg, bgb;
 
-        alpha = *source >> RrDefaultAlphaOffset;
+        /* apply the rgba's opacity as well */
+        alpha = ((*source >> RrDefaultAlphaOffset) * rgba->alpha >> 8) & 0xff;
         r = *source >> RrDefaultRedOffset;
         g = *source >> RrDefaultGreenOffset;
         b = *source >> RrDefaultBlueOffset;
This page took 0.024934 seconds and 4 git commands to generate.