From: Dana Jansens Date: Tue, 29 May 2007 03:31:25 +0000 (+0000) Subject: it doesn't work but its something X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=9df3e07b732c3507333f1c6f12df67d53c65d352;p=chaz%2Fopenbox it doesn't work but its something --- diff --git a/render/image.c b/render/image.c index 3c08444d..1e76e6ba 100644 --- a/render/image.c +++ b/render/image.c @@ -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;