changeset 3484:fed6d4c6c693

Set the error so someone can get more information
author Sam Lantinga <slouken@libsdl.org>
date Sun, 22 Nov 2009 20:53:53 +0000
parents a54df8e52333
children e77a69aae239
files src/video/SDL_pixels.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;