don't need to &0xff
This commit is contained in:
parent
cb5cc0d7ac
commit
1188d9b0f6
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ void RrImageDraw(RrPixel32 *target, RrTextureRGBA *rgba,
|
||||||
guchar alpha, r, g, b, bgr, bgg, bgb;
|
guchar alpha, r, g, b, bgr, bgg, bgb;
|
||||||
|
|
||||||
/* apply the rgba's opacity as well */
|
/* apply the rgba's opacity as well */
|
||||||
alpha = (((*source >> RrDefaultAlphaOffset) * rgba->alpha) >> 8)&0xff;
|
alpha = ((*source >> RrDefaultAlphaOffset) * rgba->alpha) >> 8;
|
||||||
r = *source >> RrDefaultRedOffset;
|
r = *source >> RrDefaultRedOffset;
|
||||||
g = *source >> RrDefaultGreenOffset;
|
g = *source >> RrDefaultGreenOffset;
|
||||||
b = *source >> RrDefaultBlueOffset;
|
b = *source >> RrDefaultBlueOffset;
|
||||||
|
|
Loading…
Reference in a new issue