Skip to content

Commit

Permalink
@@ -, +, @@
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Mar 17, 2019
1 parent 3c6f205 commit 4291cd0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/video/SDL_bmp.c
Expand Up @@ -163,6 +163,14 @@ SDL_Surface * SDL_LoadBMP_RW (SDL_RWops *src, int freesrc)
ExpandBMP = biBitCount;
biBitCount = 8;
break;
case 2:
case 3:
case 5:
case 6:
case 7:
SDL_SetError("%d-bpp BMP images are not supported", biBitCount);
was_error = SDL_TRUE;
goto done;
default:
ExpandBMP = 0;
break;
Expand Down

0 comments on commit 4291cd0

Please sign in to comment.