We explicitly don't know how to handle 1 and 4 bpp pixel formats.
authorSam Lantinga <slouken@libsdl.org>
Mon, 07 Mar 2011 00:08:23 -0800
changeset 5437ce10653e370c
parent 5436 29977c050731
child 5438 b705640cb34a
We explicitly don't know how to handle 1 and 4 bpp pixel formats.
src/video/SDL_pixels.c
     1.1 --- a/src/video/SDL_pixels.c	Sun Mar 06 23:56:23 2011 -0800
     1.2 +++ b/src/video/SDL_pixels.c	Mon Mar 07 00:08:23 2011 -0800
     1.3 @@ -241,6 +241,10 @@
     1.4                             Uint32 Amask)
     1.5  {
     1.6      switch (bpp) {
     1.7 +    case 1:
     1.8 +    case 4:
     1.9 +        /* Can't tell if this is LSB or MSB bitmap ordering... */
    1.10 +        break;
    1.11      case 8:
    1.12          if (Rmask == 0) {
    1.13              return SDL_PIXELFORMAT_INDEX8;