Mercurial > sdl-ios-xcode
diff src/video/SDL_cursor.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 | 782fd950bd46 37dab4a917c4 |
line wrap: on
line diff
--- a/src/video/SDL_cursor.c Fri Feb 24 17:03:06 2006 +0000 +++ b/src/video/SDL_cursor.c Fri Feb 24 18:24:57 2006 +0000 @@ -331,7 +331,7 @@ /* Keep track of the current cursor colors */ static int palette_changed = 1; -static Uint32 pixels8[2]; +static Uint8 pixels8[2]; void SDL_CursorPaletteChanged(void) { @@ -377,8 +377,8 @@ int dstskip; if ( palette_changed ) { - pixels8[0] = SDL_MapRGB(screen->format, 255, 255, 255); - pixels8[1] = SDL_MapRGB(screen->format, 0, 0, 0); + pixels8[0] = (Uint8)SDL_MapRGB(screen->format, 255, 255, 255); + pixels8[1] = (Uint8)SDL_MapRGB(screen->format, 0, 0, 0); palette_changed = 0; } dst = (Uint8 *)screen->pixels + @@ -419,7 +419,7 @@ datab = *data++; for ( i=0; i<8; ++i ) { if ( maskb & 0x80 ) { - *dst = pixels[datab>>7]; + *dst = (Uint16)pixels[datab>>7]; } maskb <<= 1; datab <<= 1; @@ -509,8 +509,8 @@ maxx = area->x+area->w; if ( screen->format->BytesPerPixel == 1 ) { if ( palette_changed ) { - pixels8[0] = SDL_MapRGB(screen->format, 255, 255, 255); - pixels8[1] = SDL_MapRGB(screen->format, 0, 0, 0); + pixels8[0] = (Uint8)SDL_MapRGB(screen->format, 255, 255, 255); + pixels8[1] = (Uint8)SDL_MapRGB(screen->format, 0, 0, 0); palette_changed = 0; } for ( h=area->h; h; h-- ) {