src/video/SDL_blit_A.c
changeset 5407 40c9d744e595
parent 5389 24903690f48a
child 5439 3a778c6c0269
equal deleted inserted replaced
5406:1517da4ab6b1 5407:40c9d744e595
   497      *  colors is alpha, and it's one complete byte, since some formats
   497      *  colors is alpha, and it's one complete byte, since some formats
   498      *  leave alpha with a zero mask, but we should still swizzle the bits.
   498      *  leave alpha with a zero mask, but we should still swizzle the bits.
   499      */
   499      */
   500     /* ARGB */
   500     /* ARGB */
   501     const static struct SDL_PixelFormat default_pixel_format = {
   501     const static struct SDL_PixelFormat default_pixel_format = {
   502         NULL, 0, 0,
   502         0, NULL, 0, 0,
   503         0, 0, 0, 0,
   503         0, 0, 0, 0,
   504         16, 8, 0, 24,
   504         16, 8, 0, 24,
   505         0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000
   505         0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000,
       
   506         0, NULL
   506     };
   507     };
   507     if (!srcfmt) {
   508     if (!srcfmt) {
   508         srcfmt = &default_pixel_format;
   509         srcfmt = &default_pixel_format;
   509     }
   510     }
   510     if (!dstfmt) {
   511     if (!dstfmt) {