*** empty log message ***
authorSam Lantinga <slouken@libsdl.org>
Thu, 16 Mar 2006 00:35:21 +0000
changeset 1546 4b835e36633d
parent 1545 8d9bb0cf2c2a
child 1547 dd05d6ee234e
*** empty log message ***
src/video/SDL_blit_A.c
--- a/src/video/SDL_blit_A.c	Wed Mar 15 17:46:41 2006 +0000
+++ b/src/video/SDL_blit_A.c	Thu Mar 16 00:35:21 2006 +0000
@@ -2175,7 +2175,7 @@
 				d = (d | d << 16) & 0x07e0f81f;
 				d += (s - d) * alpha >> 5;
 				d &= 0x07e0f81f;
-				*dstp++ = d | d >> 16;
+				*dstp++ = (Uint16)(d | d >> 16);
 			},{
 				s = *srcp++;
 				d = *dstp;
@@ -2188,7 +2188,7 @@
 				d = (d | d << 16) & 0x07e0f81f;
 				d += (s - d) * alpha >> 5;
 				d &= 0x07e0f81f;
-				*dstp++ = d | d >> 16;
+				*dstp++ = (Uint16)(d | d >> 16);
 				s = *srcp++;
 				d = *dstp;
 				/*
@@ -2200,7 +2200,7 @@
 				d = (d | d << 16) & 0x07e0f81f;
 				d += (s - d) * alpha >> 5;
 				d &= 0x07e0f81f;
-				*dstp++ = d | d >> 16;
+				*dstp++ = (Uint16)(d | d >> 16);
 			},{
 				src1 = *(__m64*)srcp; /* 4 src pixels -> src1 */
 				dst1 = *(__m64*)dstp; /* 4 dst pixels -> dst1 */
@@ -2310,7 +2310,7 @@
 				d = (d | d << 16) & 0x03e07c1f;
 				d += (s - d) * alpha >> 5;
 				d &= 0x03e07c1f;
-				*dstp++ = d | d >> 16;
+				*dstp++ = (Uint16)(d | d >> 16);
 			},{
 				s = *srcp++;
 				d = *dstp;
@@ -2323,7 +2323,7 @@
 				d = (d | d << 16) & 0x03e07c1f;
 				d += (s - d) * alpha >> 5;
 				d &= 0x03e07c1f;
-				*dstp++ = d | d >> 16;
+				*dstp++ = (Uint16)(d | d >> 16);
 			        s = *srcp++;
 				d = *dstp;
 				/*
@@ -2335,7 +2335,7 @@
 				d = (d | d << 16) & 0x03e07c1f;
 				d += (s - d) * alpha >> 5;
 				d &= 0x03e07c1f;
-				*dstp++ = d | d >> 16;
+				*dstp++ = (Uint16)(d | d >> 16);
 			},{
 				src1 = *(__m64*)srcp; /* 4 src pixels -> src1 */
 				dst1 = *(__m64*)dstp; /* 4 dst pixels -> dst1 */