Skip to content

Commit 4291cd0

Browse files
committedMar 17, 2019
@@ -, +, @@
1 parent 3c6f205 commit 4291cd0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎src/video/SDL_bmp.c

+8
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,14 @@ SDL_Surface * SDL_LoadBMP_RW (SDL_RWops *src, int freesrc)
163163
ExpandBMP = biBitCount;
164164
biBitCount = 8;
165165
break;
166+
case 2:
167+
case 3:
168+
case 5:
169+
case 6:
170+
case 7:
171+
SDL_SetError("%d-bpp BMP images are not supported", biBitCount);
172+
was_error = SDL_TRUE;
173+
goto done;
166174
default:
167175
ExpandBMP = 0;
168176
break;

0 commit comments

Comments
 (0)