src/video/SDL_pixels.c
changeset 3484 fed6d4c6c693
parent 3284 2b95b2c0b6d4
child 3555 7549b986ccb1
--- a/src/video/SDL_pixels.c	Sun Nov 22 20:00:00 2009 +0000
+++ b/src/video/SDL_pixels.c	Sun Nov 22 20:53:53 2009 +0000
@@ -103,7 +103,7 @@
         masks[3] = 0x00000003;
         break;
     default:
-        /* Unknown layout */
+        SDL_SetError("Unknown pixel format");
         return SDL_FALSE;
     }
 
@@ -153,7 +153,7 @@
         *Rmask = masks[3];
         break;
     default:
-        /* Unknown order */
+        SDL_SetError("Unknown pixel format");
         return SDL_FALSE;
     }
     return SDL_TRUE;