Save opaque alpha in the destination, fixes white spotlight in testalpha on Mac OS X.
authorSam Lantinga <slouken@libsdl.org>
Mon, 01 Dec 2008 00:41:19 +0000
changeset 2817b039bfa19ccd
parent 2816 22e393158355
child 2818 4e09acde4333
Save opaque alpha in the destination, fixes white spotlight in testalpha on Mac OS X.
src/video/SDL_RLEaccel.c
     1.1 --- a/src/video/SDL_RLEaccel.c	Mon Dec 01 00:41:15 2008 +0000
     1.2 +++ b/src/video/SDL_RLEaccel.c	Mon Dec 01 00:41:19 2008 +0000
     1.3 @@ -971,7 +971,7 @@
     1.4  	s &= 0xff00;						\
     1.5  	d &= 0xff00;						\
     1.6  	d = (d + ((s - d) * alpha >> 8)) & 0xff00;		\
     1.7 -	dst = d1 | d;						\
     1.8 +	dst = d1 | d | 0xff000000;				\
     1.9      } while(0)
    1.10  
    1.11  /*