Mercurial > sdl-ios-xcode
comparison test/testintersections.c @ 5187:d976b67150c5
Restored SDL_BLENDMODE_MOD for MAME
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 04 Feb 2011 19:50:56 -0800 |
parents | ad50b3db78bd |
children |
comparison
equal
deleted
inserted
replaced
5186:227d81a4b66c | 5187:d976b67150c5 |
---|---|
221 blendMode = SDL_BLENDMODE_BLEND; | 221 blendMode = SDL_BLENDMODE_BLEND; |
222 consumed = 2; | 222 consumed = 2; |
223 } else if (SDL_strcasecmp(argv[i + 1], "add") == 0) { | 223 } else if (SDL_strcasecmp(argv[i + 1], "add") == 0) { |
224 blendMode = SDL_BLENDMODE_ADD; | 224 blendMode = SDL_BLENDMODE_ADD; |
225 consumed = 2; | 225 consumed = 2; |
226 } else if (SDL_strcasecmp(argv[i + 1], "mod") == 0) { | |
227 blendMode = SDL_BLENDMODE_MOD; | |
228 consumed = 2; | |
226 } | 229 } |
227 } | 230 } |
228 } else if (SDL_strcasecmp(argv[i], "--cyclecolor") == 0) { | 231 } else if (SDL_strcasecmp(argv[i], "--cyclecolor") == 0) { |
229 cycle_color = SDL_TRUE; | 232 cycle_color = SDL_TRUE; |
230 consumed = 1; | 233 consumed = 1; |
236 consumed = 1; | 239 consumed = 1; |
237 } | 240 } |
238 } | 241 } |
239 if (consumed < 0) { | 242 if (consumed < 0) { |
240 fprintf(stderr, | 243 fprintf(stderr, |
241 "Usage: %s %s [--blend none|blend|add] [--cyclecolor] [--cyclealpha]\n", | 244 "Usage: %s %s [--blend none|blend|add|mod] [--cyclecolor] [--cyclealpha]\n", |
242 argv[0], CommonUsage(state)); | 245 argv[0], CommonUsage(state)); |
243 return 1; | 246 return 1; |
244 } | 247 } |
245 i += consumed; | 248 i += consumed; |
246 } | 249 } |