src/video/SDL_blit_N.c
changeset 5407 40c9d744e595
parent 5389 24903690f48a
child 5439 3a778c6c0269
equal deleted inserted replaced
5406:1517da4ab6b1 5407:40c9d744e595
   106      *  colors is alpha, and it's one complete byte, since some formats
   106      *  colors is alpha, and it's one complete byte, since some formats
   107      *  leave alpha with a zero mask, but we should still swizzle the bits.
   107      *  leave alpha with a zero mask, but we should still swizzle the bits.
   108      */
   108      */
   109     /* ARGB */
   109     /* ARGB */
   110     const static const struct SDL_PixelFormat default_pixel_format = {
   110     const static const struct SDL_PixelFormat default_pixel_format = {
   111         NULL, 32, 4,
   111         0, NULL, 0, 0,
   112         0, 0, 0, 0,
   112         0, 0, 0, 0,
   113         16, 8, 0, 24,
   113         16, 8, 0, 24,
   114         0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000
   114         0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000,
       
   115         0, NULL
   115     };
   116     };
   116     if (!srcfmt) {
   117     if (!srcfmt) {
   117         srcfmt = &default_pixel_format;
   118         srcfmt = &default_pixel_format;
   118     }
   119     }
   119     if (!dstfmt) {
   120     if (!dstfmt) {