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 2817 b039bfa19ccd
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
--- a/src/video/SDL_RLEaccel.c	Mon Dec 01 00:41:15 2008 +0000
+++ b/src/video/SDL_RLEaccel.c	Mon Dec 01 00:41:19 2008 +0000
@@ -971,7 +971,7 @@
 	s &= 0xff00;						\
 	d &= 0xff00;						\
 	d = (d + ((s - d) * alpha >> 8)) & 0xff00;		\
-	dst = d1 | d;						\
+	dst = d1 | d | 0xff000000;				\
     } while(0)
 
 /*