Commit 45a366fa authored by Sam Lantinga's avatar Sam Lantinga

Set the error so someone can get more information

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404225
parent 263c9feb
......@@ -103,7 +103,7 @@ SDL_PixelFormatEnumToMasks(Uint32 format, int *bpp, Uint32 * Rmask,
masks[3] = 0x00000003;
break;
default:
/* Unknown layout */
SDL_SetError("Unknown pixel format");
return SDL_FALSE;
}
......@@ -153,7 +153,7 @@ SDL_PixelFormatEnumToMasks(Uint32 format, int *bpp, Uint32 * Rmask,
*Rmask = masks[3];
break;
default:
/* Unknown order */
SDL_SetError("Unknown pixel format");
return SDL_FALSE;
}
return SDL_TRUE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment