Revert r5463: Alpha blend "correctness" patch.
Sam says: "We should revert this. I applied it in 1.3 and then fixed it for correctness." --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404382
This commit is contained in:
parent
33bfbef988
commit
d619ac0f8d
1 changed files with 3 additions and 3 deletions
|
@ -444,9 +444,9 @@ do { \
|
|||
/* Blend the RGB values of two Pixels based on a source alpha value */
|
||||
#define ALPHA_BLEND(sR, sG, sB, A, dR, dG, dB) \
|
||||
do { \
|
||||
dR = (((((int)(sR-dR)*((int)A))+255)/255)+dR); \
|
||||
dG = (((((int)(sG-dG)*((int)A))+255)/255)+dG); \
|
||||
dB = (((((int)(sB-dB)*((int)A))+255)/255)+dB); \
|
||||
dR = ((((int)(sR-dR)*(int)A)/255)+dR); \
|
||||
dG = ((((int)(sG-dG)*(int)A)/255)+dG); \
|
||||
dB = ((((int)(sB-dB)*(int)A)/255)+dB); \
|
||||
} while(0)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue