From 9df3e07b732c3507333f1c6f12df67d53c65d352 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 29 May 2007 03:31:25 +0000 Subject: [PATCH] it doesn't work but its something --- render/image.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.45.2