Skip to content

Commit

Permalink
SDL_bmp.c: reject bmp files with zero bpp
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Sep 3, 2019
1 parent 46d1437 commit 9e6e012
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/video/SDL_bmp.c
Expand Up @@ -168,6 +168,7 @@ SDL_Surface * SDL_LoadBMP_RW (SDL_RWops *src, int freesrc)
ExpandBMP = biBitCount;
biBitCount = 8;
break;
case 0:
case 2:
case 3:
case 5:
Expand Down

0 comments on commit 9e6e012

Please sign in to comment.