comparison src/video/SDL_blit.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
179 if ((flagcheck & entries[i].flags) != flagcheck) { 179 if ((flagcheck & entries[i].flags) != flagcheck) {
180 continue; 180 continue;
181 } 181 }
182 182
183 /* Check blend flags */ 183 /* Check blend flags */
184 flagcheck = 184 flagcheck = (flags & (SDL_COPY_BLEND | SDL_COPY_ADD));
185 (flags &
186 (SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD | SDL_COPY_MOD));
187 if ((flagcheck & entries[i].flags) != flagcheck) { 185 if ((flagcheck & entries[i].flags) != flagcheck) {
188 continue; 186 continue;
189 } 187 }
190 188
191 /* Check colorkey flag */ 189 /* Check colorkey flag */