comparison src/video/SDL_RLEaccel.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 f7b03b6838cb
children d976b67150c5
comparison
equal deleted inserted replaced
5142:57851a238c8f 5143:e743b9c3f6d6
1421 } 1421 }
1422 1422
1423 /* Pass on combinations not supported */ 1423 /* Pass on combinations not supported */
1424 if ((flags & SDL_COPY_MODULATE_COLOR) || 1424 if ((flags & SDL_COPY_MODULATE_COLOR) ||
1425 ((flags & SDL_COPY_MODULATE_ALPHA) && surface->format->Amask) || 1425 ((flags & SDL_COPY_MODULATE_ALPHA) && surface->format->Amask) ||
1426 (flags & (SDL_COPY_ADD | SDL_COPY_MOD)) || 1426 (flags & SDL_COPY_ADD) ||
1427 (flags & SDL_COPY_NEAREST)) { 1427 (flags & SDL_COPY_NEAREST)) {
1428 return -1; 1428 return -1;
1429 } 1429 }
1430 1430
1431 /* Encode and set up the blit */ 1431 /* Encode and set up the blit */