changeset 2817:b039bfa19ccd

Save opaque alpha in the destination, fixes white spotlight in testalpha on Mac OS X.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 01 Dec 2008 00:41:19 +0000
parents 22e393158355
children 4e09acde4333
files src/video/SDL_RLEaccel.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)
 
 /*