comparison src/video/SDL_video.c @ 5143:e743b9c3f6d6

Making the API simpler, the blend modes are "none, blend, add" and are supported by all renderers.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 31 Jan 2011 23:23:57 -0800
parents da10636e5eca
children 31e7f523ab3d
comparison
equal deleted inserted replaced
5142:57851a238c8f 5143:e743b9c3f6d6
1701 return 0; 1701 return 0;
1702 } 1702 }
1703 } else { 1703 } else {
1704 if (surface->format->Amask 1704 if (surface->format->Amask
1705 || !(surface->map->info.flags & 1705 || !(surface->map->info.flags &
1706 (SDL_COPY_COLORKEY | SDL_COPY_MASK | SDL_COPY_BLEND))) { 1706 (SDL_COPY_COLORKEY | SDL_COPY_BLEND))) {
1707 Uint32 it; 1707 Uint32 it;
1708 int pfmt; 1708 int pfmt;
1709 1709
1710 /* Pixel formats, sorted by best first */ 1710 /* Pixel formats, sorted by best first */
1711 static const Uint32 sdl_pformats[] = { 1711 static const Uint32 sdl_pformats[] = {