Revert r5463: Alpha blend "correctness" patch.
authorRyan C. Gordon
Sun, 10 Jan 2010 08:59:25 +0000
changeset 363176667e288846
parent 3630 efb79807afe1
child 3632 da2a23b56493
Revert r5463: Alpha blend "correctness" patch.

Sam says:
"We should revert this. I applied it in 1.3 and then fixed it for correctness."
src/video/SDL_blit.h
     1.1 --- a/src/video/SDL_blit.h	Sun Jan 10 08:21:19 2010 +0000
     1.2 +++ b/src/video/SDL_blit.h	Sun Jan 10 08:59:25 2010 +0000
     1.3 @@ -444,9 +444,9 @@
     1.4  /* Blend the RGB values of two Pixels based on a source alpha value */
     1.5  #define ALPHA_BLEND(sR, sG, sB, A, dR, dG, dB)	\
     1.6  do {						\
     1.7 -	dR = (((((int)(sR-dR)*((int)A))+255)/255)+dR);	\
     1.8 -	dG = (((((int)(sG-dG)*((int)A))+255)/255)+dG);	\
     1.9 -	dB = (((((int)(sB-dB)*((int)A))+255)/255)+dB);	\
    1.10 +	dR = ((((int)(sR-dR)*(int)A)/255)+dR);	\
    1.11 +	dG = ((((int)(sG-dG)*(int)A)/255)+dG);	\
    1.12 +	dB = ((((int)(sB-dB)*(int)A)/255)+dB);	\
    1.13  } while(0)
    1.14  
    1.15