# HG changeset patch # User Ryan C. Gordon # Date 1263113965 0 # Node ID 76667e288846819b2ce572714b79928d52108567 # Parent efb79807afe117d6f009f2eebdfda959d30e255f Revert r5463: Alpha blend "correctness" patch. Sam says: "We should revert this. I applied it in 1.3 and then fixed it for correctness." diff -r efb79807afe1 -r 76667e288846 src/video/SDL_blit.h --- a/src/video/SDL_blit.h Sun Jan 10 08:21:19 2010 +0000 +++ b/src/video/SDL_blit.h Sun Jan 10 08:59:25 2010 +0000 @@ -444,9 +444,9 @@ /* 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)