Updated to build on Windows
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403380
This commit is contained in:
parent
30af8c9442
commit
c53a7c6ca2
6 changed files with 38 additions and 13 deletions
|
@ -218,7 +218,7 @@ SDL_LoadBMP_RW(SDL_RWops * src, int freesrc)
|
|||
if (biClrUsed == 0) {
|
||||
biClrUsed = 1 << biBitCount;
|
||||
}
|
||||
if (biClrUsed > palette->ncolors) {
|
||||
if ((int)biClrUsed > palette->ncolors) {
|
||||
palette->ncolors = biClrUsed;
|
||||
palette->colors =
|
||||
(SDL_Color *) SDL_realloc(palette->colors,
|
||||
|
@ -229,7 +229,7 @@ SDL_LoadBMP_RW(SDL_RWops * src, int freesrc)
|
|||
was_error = 1;
|
||||
goto done;
|
||||
}
|
||||
} else if (biClrUsed < palette->ncolors) {
|
||||
} else if ((int)biClrUsed < palette->ncolors) {
|
||||
palette->ncolors = biClrUsed;
|
||||
}
|
||||
if (biSize == 12) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue