diff src/video/SDL_surface.c @ 1428:5f52867ba65c

Update for Visual C++ 6.0
author Sam Lantinga <slouken@libsdl.org>
date Fri, 24 Feb 2006 18:24:57 +0000
parents d910939febfa
children 84de7511f79f
line wrap: on
line diff
--- a/src/video/SDL_surface.c	Fri Feb 24 17:03:06 2006 +0000
+++ b/src/video/SDL_surface.c	Fri Feb 24 18:24:57 2006 +0000
@@ -687,7 +687,7 @@
 		    case 2:
 			for ( y=dstrect->h; y; --y ) {
 				Uint16 *pixels = (Uint16 *)row;
-				Uint16 c = color;
+				Uint16 c = (Uint16)color;
 				Uint32 cc = (Uint32)c << 16 | c;
 				int n = dstrect->w;
 				if((unsigned long)pixels & 3) {