Skip to content

Commit

Permalink
LoadBMP: fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
1bsyl committed Aug 31, 2019
1 parent 96d1f24 commit af905c7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions IMG_bmp.c
Expand Up @@ -118,7 +118,7 @@ static SDL_Surface *
LoadICOCUR_RW(SDL_RWops * src, int type, int freesrc)
{
SDL_bool was_error;
Sint64 fp_offset;
Sint64 fp_offset = 0;
int bmpPitch;
int i, pad;
SDL_Surface *surface;
Expand Down Expand Up @@ -176,10 +176,10 @@ LoadICOCUR_RW(SDL_RWops * src, int type, int freesrc)
int bWidth = SDL_Read8(src); /* Uint8, but 0 = 256 ! */
int bHeight = SDL_Read8(src); /* Uint8, but 0 = 256 ! */
int bColorCount = SDL_Read8(src); /* Uint8, but 0 = 256 ! */
Uint8 bReserved = SDL_Read8(src);
Uint16 wPlanes = SDL_ReadLE16(src);
Uint16 wBitCount = SDL_ReadLE16(src);
Uint32 dwBytesInRes = SDL_ReadLE32(src);
/* Uint8 bReserved = */ SDL_Read8(src);
/* Uint16 wPlanes = */ SDL_ReadLE16(src);
/* Uint16 wBitCount = */ SDL_ReadLE16(src);
/* Uint32 dwBytesInRes = */ SDL_ReadLE32(src);
Uint32 dwImageOffset = SDL_ReadLE32(src);

if (!bWidth)
Expand Down

0 comments on commit af905c7

Please sign in to comment.