comparison 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
comparison
equal deleted inserted replaced
1427:5f5a74d29d18 1428:5f52867ba65c
685 } else { 685 } else {
686 switch (dst->format->BytesPerPixel) { 686 switch (dst->format->BytesPerPixel) {
687 case 2: 687 case 2:
688 for ( y=dstrect->h; y; --y ) { 688 for ( y=dstrect->h; y; --y ) {
689 Uint16 *pixels = (Uint16 *)row; 689 Uint16 *pixels = (Uint16 *)row;
690 Uint16 c = color; 690 Uint16 c = (Uint16)color;
691 Uint32 cc = (Uint32)c << 16 | c; 691 Uint32 cc = (Uint32)c << 16 | c;
692 int n = dstrect->w; 692 int n = dstrect->w;
693 if((unsigned long)pixels & 3) { 693 if((unsigned long)pixels & 3) {
694 *pixels++ = c; 694 *pixels++ = c;
695 n--; 695 n--;