Set the error so someone can get more information
authorSam Lantinga <slouken@libsdl.org>
Sun, 22 Nov 2009 20:53:53 +0000
changeset 3484 fed6d4c6c693
parent 3483 a54df8e52333
child 3485 e77a69aae239
Set the error so someone can get more information
src/video/SDL_pixels.c
--- 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;