@@ -, +, @@ SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Sat, 16 Mar 2019 18:35:11 -0700
branchSDL-1.2
changeset 1264508f3b4992538
parent 12611 19d8c3b9c251
child 12646 4646533663ae
@@ -, +, @@
src/video/SDL_bmp.c
     1.1 --- a/src/video/SDL_bmp.c	Mon Feb 18 07:48:23 2019 -0800
     1.2 +++ b/src/video/SDL_bmp.c	Sat Mar 16 18:35:11 2019 -0700
     1.3 @@ -163,6 +163,14 @@
     1.4  			ExpandBMP = biBitCount;
     1.5  			biBitCount = 8;
     1.6  			break;
     1.7 +		case 2:
     1.8 +		case 3:
     1.9 +		case 5:
    1.10 +		case 6:
    1.11 +		case 7:
    1.12 +			SDL_SetError("%d-bpp BMP images are not supported", biBitCount);
    1.13 +			was_error = SDL_TRUE;
    1.14 +			goto done;
    1.15  		default:
    1.16  			ExpandBMP = 0;
    1.17  			break;