diff src/video/SDL_blit_N.c @ 1985:8055185ae4ed

Added source color and alpha modulation support. Added perl script to generate optimized render copy functions.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 28 Aug 2006 03:17:39 +0000
parents c121d94672cb
children 93994f65c74c
line wrap: on
line diff
--- a/src/video/SDL_blit_N.c	Thu Aug 24 12:49:59 2006 +0000
+++ b/src/video/SDL_blit_N.c	Mon Aug 28 03:17:39 2006 +0000
@@ -2108,7 +2108,7 @@
 		/* *INDENT-OFF* */
 		DUFFS_LOOP(
 		{
-		        Uint32 Pixel;
+            Uint32 Pixel;
 			unsigned sR;
 			unsigned sG;
 			unsigned sB;
@@ -2278,15 +2278,14 @@
 		/* *INDENT-OFF* */
 		DUFFS_LOOP(
 		{
-		        Uint32 Pixel;
+            Uint32 Pixel;
 			unsigned sR;
 			unsigned sG;
 			unsigned sB;
 			RETRIEVE_RGB_PIXEL(src, srcbpp, Pixel);
 			if ( (Pixel & rgbmask) != ckey ) {
-			        RGB_FROM_PIXEL(Pixel, srcfmt, sR, sG, sB);
-				ASSEMBLE_RGBA(dst, dstbpp, dstfmt,
-					      sR, sG, sB, alpha);
+                RGB_FROM_PIXEL(Pixel, srcfmt, sR, sG, sB);
+				ASSEMBLE_RGBA(dst, dstbpp, dstfmt, sR, sG, sB, alpha);
 			}
 			dst += dstbpp;
 			src += srcbpp;
@@ -2327,11 +2326,9 @@
 		/* *INDENT-OFF* */
 		DUFFS_LOOP(
 		{
-			DISEMBLE_RGBA(src, srcbpp, srcfmt, Pixel,
-				      sR, sG, sB, sA);
+			DISEMBLE_RGBA(src, srcbpp, srcfmt, Pixel, sR, sG, sB, sA);
 			if ( (Pixel & rgbmask) != ckey ) {
-				  ASSEMBLE_RGBA(dst, dstbpp, dstfmt,
-						sR, sG, sB, sA);
+				  ASSEMBLE_RGBA(dst, dstbpp, dstfmt, sR, sG, sB, sA);
 			}
 			dst += dstbpp;
 			src += srcbpp;