# HG changeset patch # User Sam Lantinga # Date 1258923233 0 # Node ID fed6d4c6c6935c332a002bdfe0918c04bd5f07e0 # Parent a54df8e52333d106f39ba8f64f5ceb53bc4f13a9 Set the error so someone can get more information diff -r a54df8e52333 -r fed6d4c6c693 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;