src/video/SDL_video.c
changeset 3196 413672b09bb3
parent 3186 51750b7a966f
child 3257 94fb40a4a9a7
equal deleted inserted replaced
3195:08747e24a50f 3196:413672b09bb3
  1628         }
  1628         }
  1629     } else {
  1629     } else {
  1630         if (surface->format->Amask
  1630         if (surface->format->Amask
  1631             || !(surface->map->info.flags &
  1631             || !(surface->map->info.flags &
  1632                  (SDL_COPY_COLORKEY | SDL_COPY_MASK | SDL_COPY_BLEND))) {
  1632                  (SDL_COPY_COLORKEY | SDL_COPY_MASK | SDL_COPY_BLEND))) {
  1633             int it;
  1633             Uint32 it;
  1634             int pfmt;
  1634             int pfmt;
  1635 
  1635 
  1636             /* Pixel formats, sorted by best first */
  1636             /* Pixel formats, sorted by best first */
  1637             static const Uint32 sdl_pformats[] = {
  1637             static const Uint32 sdl_pformats[] = {
  1638                 SDL_PIXELFORMAT_ARGB8888,
  1638                 SDL_PIXELFORMAT_ARGB8888,
  1722                     return 0;
  1722                     return 0;
  1723                 }
  1723                 }
  1724             }
  1724             }
  1725         } else {
  1725         } else {
  1726             /* Need a format with alpha */
  1726             /* Need a format with alpha */
  1727             int it;
  1727             Uint32 it;
  1728             int apfmt;
  1728             int apfmt;
  1729 
  1729 
  1730             /* Pixel formats with alpha, sorted by best first */
  1730             /* Pixel formats with alpha, sorted by best first */
  1731             static const Uint32 sdl_alpha_pformats[] = {
  1731             static const Uint32 sdl_alpha_pformats[] = {
  1732                 SDL_PIXELFORMAT_ARGB8888,
  1732                 SDL_PIXELFORMAT_ARGB8888,