projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f38be06
)
it doesn't work but its something
author
Dana Jansens
<danakj@orodu.net>
Tue, 29 May 2007 03:31:25 +0000
(
03:31
+0000)
committer
Dana Jansens
<danakj@orodu.net>
Tue, 29 May 2007 03:31:25 +0000
(
03:31
+0000)
render/image.c
patch
|
blob
|
history
diff --git
a/render/image.c
b/render/image.c
index 3c08444db14116ddf32f604fcc7d262cb8711358..1e76e6ba350bd46526d78007591107c6e5484111 100644
(file)
--- 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;