Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

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

  • Loading branch information
slouken committed Mar 7, 2011
1 parent 2c46199 commit 969cbfe3b8fd482dea5fc13ef54c9b085e418621
Showing with 4 additions and 0 deletions.
  1. +4 −0 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;

0 comments on commit 969cbfe

Please sign in to comment.