equal
deleted
inserted
replaced
496 * leave alpha with a zero mask, but we should still swizzle the bits. |
496 * leave alpha with a zero mask, but we should still swizzle the bits. |
497 */ |
497 */ |
498 /* ARGB */ |
498 /* ARGB */ |
499 const static struct SDL_PixelFormat default_pixel_format = { |
499 const static struct SDL_PixelFormat default_pixel_format = { |
500 0, NULL, 0, 0, |
500 0, NULL, 0, 0, |
|
501 {0, 0}, |
|
502 0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000, |
501 0, 0, 0, 0, |
503 0, 0, 0, 0, |
502 16, 8, 0, 24, |
504 16, 8, 0, 24, |
503 0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000, |
|
504 0, NULL |
505 0, NULL |
505 }; |
506 }; |
506 if (!srcfmt) { |
507 if (!srcfmt) { |
507 srcfmt = &default_pixel_format; |
508 srcfmt = &default_pixel_format; |
508 } |
509 } |