From 1279ca64b1d6c95aac2267136809a505df126508 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 7 Mar 2011 00:08:23 -0800 Subject: [PATCH] We explicitly don't know how to handle 1 and 4 bpp pixel formats. --- src/video/SDL_pixels.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/video/SDL_pixels.c b/src/video/SDL_pixels.c index e667f0952..85f860b86 100644 --- a/src/video/SDL_pixels.c +++ b/src/video/SDL_pixels.c @@ -241,6 +241,10 @@ SDL_MasksToPixelFormatEnum(int bpp, Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask) { switch (bpp) { + case 1: + case 4: + /* Can't tell if this is LSB or MSB bitmap ordering... */ + break; case 8: if (Rmask == 0) { return SDL_PIXELFORMAT_INDEX8;