diff src/video/SDL_video.c @ 4984:889e6fef8fc5

Support the new 16-bit pixel formats in SDL_CreateTextureFromSurface()
author Sam Lantinga <slouken@libsdl.org>
date Wed, 12 Jan 2011 15:22:29 -0800
parents 4a7f284a82b2
children b68a0e03db02
line wrap: on
line diff
--- 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
             };