src/video/SDL_pixels.c
changeset 5437 ce10653e370c
parent 5436 29977c050731
child 5438 b705640cb34a
equal deleted inserted replaced
5436:29977c050731 5437:ce10653e370c
   239 Uint32
   239 Uint32
   240 SDL_MasksToPixelFormatEnum(int bpp, Uint32 Rmask, Uint32 Gmask, Uint32 Bmask,
   240 SDL_MasksToPixelFormatEnum(int bpp, Uint32 Rmask, Uint32 Gmask, Uint32 Bmask,
   241                            Uint32 Amask)
   241                            Uint32 Amask)
   242 {
   242 {
   243     switch (bpp) {
   243     switch (bpp) {
       
   244     case 1:
       
   245     case 4:
       
   246         /* Can't tell if this is LSB or MSB bitmap ordering... */
       
   247         break;
   244     case 8:
   248     case 8:
   245         if (Rmask == 0) {
   249         if (Rmask == 0) {
   246             return SDL_PIXELFORMAT_INDEX8;
   250             return SDL_PIXELFORMAT_INDEX8;
   247         }
   251         }
   248         if (Rmask == 0xE0 &&
   252         if (Rmask == 0xE0 &&