Support the new 16-bit pixel formats in SDL_CreateTextureFromSurface()
authorSam Lantinga <slouken@libsdl.org>
Wed, 12 Jan 2011 15:22:29 -0800
changeset 4984 889e6fef8fc5
parent 4983 b49d3869ebd2
child 4985 047a580d30f3
Support the new 16-bit pixel formats in SDL_CreateTextureFromSurface()
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
             };