Support the new 16-bit pixel formats in SDL_CreateTextureFromSurface()
authorSam Lantinga <slouken@libsdl.org>
Wed, 12 Jan 2011 15:22:29 -0800
changeset 4984889e6fef8fc5
parent 4983 b49d3869ebd2
child 4985 047a580d30f3
Support the new 16-bit pixel formats in SDL_CreateTextureFromSurface()
src/video/SDL_video.c
     1.1 --- a/src/video/SDL_video.c	Wed Jan 12 15:21:12 2011 -0800
     1.2 +++ b/src/video/SDL_video.c	Wed Jan 12 15:22:29 2011 -0800
     1.3 @@ -1739,11 +1739,15 @@
     1.4                  SDL_PIXELFORMAT_RGB565,
     1.5                  SDL_PIXELFORMAT_BGR565,
     1.6                  SDL_PIXELFORMAT_ARGB1555,
     1.7 +                SDL_PIXELFORMAT_RGBA5551,
     1.8                  SDL_PIXELFORMAT_ABGR1555,
     1.9 +                SDL_PIXELFORMAT_BGRA5551,
    1.10                  SDL_PIXELFORMAT_RGB555,
    1.11                  SDL_PIXELFORMAT_BGR555,
    1.12                  SDL_PIXELFORMAT_ARGB4444,
    1.13 +                SDL_PIXELFORMAT_RGBA4444,
    1.14                  SDL_PIXELFORMAT_ABGR4444,
    1.15 +                SDL_PIXELFORMAT_BGRA4444,
    1.16                  SDL_PIXELFORMAT_RGB444,
    1.17                  SDL_PIXELFORMAT_ARGB2101010,
    1.18                  SDL_PIXELFORMAT_INDEX8,
    1.19 @@ -1827,9 +1831,13 @@
    1.20                  SDL_PIXELFORMAT_ABGR8888,
    1.21                  SDL_PIXELFORMAT_BGRA8888,
    1.22                  SDL_PIXELFORMAT_ARGB1555,
    1.23 +                SDL_PIXELFORMAT_RGBA5551,
    1.24                  SDL_PIXELFORMAT_ABGR1555,
    1.25 +                SDL_PIXELFORMAT_BGRA5551,
    1.26                  SDL_PIXELFORMAT_ARGB4444,
    1.27 +                SDL_PIXELFORMAT_RGBA4444,
    1.28                  SDL_PIXELFORMAT_ABGR4444,
    1.29 +                SDL_PIXELFORMAT_BGRA4444,
    1.30                  SDL_PIXELFORMAT_ARGB2101010,
    1.31                  SDL_PIXELFORMAT_UNKNOWN
    1.32              };