Skip to content

Commit

Permalink
Updated Visual C++ project
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed May 11, 2006
1 parent fe5ff54 commit 402c764
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions IMG_lbm.c
Expand Up @@ -446,15 +446,15 @@ SDL_Surface *IMG_LoadLBM_RW( SDL_RWops *src )
}
if ( SDL_BYTEORDER == SDL_LIL_ENDIAN )
{
*ptr++ = finalcolor>>16;
*ptr++ = finalcolor>>8;
*ptr++ = finalcolor;
*ptr++ = (Uint8)(finalcolor>>16);
*ptr++ = (Uint8)(finalcolor>>8);
*ptr++ = (Uint8)(finalcolor);
}
else
{
*ptr++ = finalcolor;
*ptr++ = finalcolor>>8;
*ptr++ = finalcolor>>16;
*ptr++ = (Uint8)(finalcolor);
*ptr++ = (Uint8)(finalcolor>>8);
*ptr++ = (Uint8)(finalcolor>>16);
}

maskBit = maskBit>>1;
Expand Down
10 changes: 5 additions & 5 deletions IMG_xpm.c
Expand Up @@ -412,9 +412,9 @@ static SDL_Surface *load_xpm(char **xpm, SDL_RWops *src)
memcpy(nextkey, line, cpp);
if(indexed) {
SDL_Color *c = im_colors + index;
c->r = rgb >> 16;
c->g = rgb >> 8;
c->b = rgb;
c->r = (Uint8)(rgb >> 16);
c->g = (Uint8)(rgb >> 8);
c->b = (Uint8)(rgb);
pixel = index;
} else
pixel = rgb;
Expand All @@ -435,11 +435,11 @@ static SDL_Surface *load_xpm(char **xpm, SDL_RWops *src)
/* optimization for some common cases */
if(cpp == 1)
for(x = 0; x < w; x++)
dst[x] = QUICK_COLORHASH(colors,
dst[x] = (Uint8)QUICK_COLORHASH(colors,
line + x);
else
for(x = 0; x < w; x++)
dst[x] = get_colorhash(colors,
dst[x] = (Uint8)get_colorhash(colors,
line + x * cpp,
cpp);
} else {
Expand Down
Binary file modified VisualC.zip
Binary file not shown.

0 comments on commit 402c764

Please sign in to comment.