projects
/
dana
/
openbox-history.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb5cc0d
)
don't need to &0xff
author
Mikael Magnusson
<mikachu@comhem.se>
Tue, 29 May 2007 03:46:38 +0000
(
03:46
+0000)
committer
Mikael Magnusson
<mikachu@comhem.se>
Tue, 29 May 2007 03:46:38 +0000
(
03:46
+0000)
render/image.c
patch
|
blob
|
history
diff --git
a/render/image.c
b/render/image.c
index
e6e8b8b
..
4b12304
100644
(file)
--- a/
render/image.c
+++ b/
render/image.c
@@
-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;