src/video/SDL_pixels.c
changeset 5438 b705640cb34a
parent 5437 ce10653e370c
child 5439 3a778c6c0269
--- a/src/video/SDL_pixels.c	Mon Mar 07 00:08:23 2011 -0800
+++ b/src/video/SDL_pixels.c	Mon Mar 07 00:30:05 2011 -0800
@@ -242,9 +242,11 @@
 {
     switch (bpp) {
     case 1:
+        /* SDL defaults to MSB ordering */
+        return SDL_PIXELFORMAT_INDEX1MSB;
     case 4:
-        /* Can't tell if this is LSB or MSB bitmap ordering... */
-        break;
+        /* SDL defaults to MSB ordering */
+        return SDL_PIXELFORMAT_INDEX4MSB;
     case 8:
         if (Rmask == 0) {
             return SDL_PIXELFORMAT_INDEX8;