Commit 2bea0e63 authored by Sam Lantinga's avatar Sam Lantinga

We explicitly don't know how to handle 1 and 4 bpp pixel formats.

parent 2d5640cc
...@@ -241,6 +241,10 @@ SDL_MasksToPixelFormatEnum(int bpp, Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, ...@@ -241,6 +241,10 @@ SDL_MasksToPixelFormatEnum(int bpp, Uint32 Rmask, Uint32 Gmask, Uint32 Bmask,
Uint32 Amask) Uint32 Amask)
{ {
switch (bpp) { switch (bpp) {
case 1:
case 4:
/* Can't tell if this is LSB or MSB bitmap ordering... */
break;
case 8: case 8:
if (Rmask == 0) { if (Rmask == 0) {
return SDL_PIXELFORMAT_INDEX8; return SDL_PIXELFORMAT_INDEX8;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment