# HG changeset patch # User Sam Lantinga # Date 1294874549 28800 # Node ID 889e6fef8fc5de287c83ee47d27252c7e7304049 # Parent b49d3869ebd246457775f8cf90bfc2507ec167eb Support the new 16-bit pixel formats in SDL_CreateTextureFromSurface() diff -r b49d3869ebd2 -r 889e6fef8fc5 src/video/SDL_video.c --- a/src/video/SDL_video.c Wed Jan 12 15:21:12 2011 -0800 +++ b/src/video/SDL_video.c Wed Jan 12 15:22:29 2011 -0800 @@ -1739,11 +1739,15 @@ SDL_PIXELFORMAT_RGB565, SDL_PIXELFORMAT_BGR565, SDL_PIXELFORMAT_ARGB1555, + SDL_PIXELFORMAT_RGBA5551, SDL_PIXELFORMAT_ABGR1555, + SDL_PIXELFORMAT_BGRA5551, SDL_PIXELFORMAT_RGB555, SDL_PIXELFORMAT_BGR555, SDL_PIXELFORMAT_ARGB4444, + SDL_PIXELFORMAT_RGBA4444, SDL_PIXELFORMAT_ABGR4444, + SDL_PIXELFORMAT_BGRA4444, SDL_PIXELFORMAT_RGB444, SDL_PIXELFORMAT_ARGB2101010, SDL_PIXELFORMAT_INDEX8, @@ -1827,9 +1831,13 @@ SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_BGRA8888, SDL_PIXELFORMAT_ARGB1555, + SDL_PIXELFORMAT_RGBA5551, SDL_PIXELFORMAT_ABGR1555, + SDL_PIXELFORMAT_BGRA5551, SDL_PIXELFORMAT_ARGB4444, + SDL_PIXELFORMAT_RGBA4444, SDL_PIXELFORMAT_ABGR4444, + SDL_PIXELFORMAT_BGRA4444, SDL_PIXELFORMAT_ARGB2101010, SDL_PIXELFORMAT_UNKNOWN };