diff src/video/SDL_RLEaccel.c @ 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 5f3831f1c3ea
children 4dba7aa7ea77
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)
 
 /*