Skip to content

Commit

Permalink
IMG_bmp.c: make it build in C89 mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Sep 12, 2019
1 parent 2a5484e commit bb819ae
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions IMG_bmp.c
Expand Up @@ -176,11 +176,17 @@ 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);
Uint32 dwImageOffset = SDL_ReadLE32(src);
/* Uint8 bReserved;
Uint16 wPlanes;
Uint16 wBitCount;
Uint32 dwBytesInRes; */
Uint32 dwImageOffset;

/* bReserved = */ SDL_Read8(src);
/* wPlanes = */ SDL_ReadLE16(src);
/* wBitCount = */ SDL_ReadLE16(src);
/* dwBytesInRes = */ SDL_ReadLE32(src);
dwImageOffset = SDL_ReadLE32(src);

if (!bWidth)
bWidth = 256;
Expand Down

0 comments on commit bb819ae

Please sign in to comment.