comparison test/testdraw2.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
188 blendMode = SDL_BLENDMODE_BLEND; 188 blendMode = SDL_BLENDMODE_BLEND;
189 consumed = 2; 189 consumed = 2;
190 } else if (SDL_strcasecmp(argv[i + 1], "add") == 0) { 190 } else if (SDL_strcasecmp(argv[i + 1], "add") == 0) {
191 blendMode = SDL_BLENDMODE_ADD; 191 blendMode = SDL_BLENDMODE_ADD;
192 consumed = 2; 192 consumed = 2;
193 } else if (SDL_strcasecmp(argv[i + 1], "mod") == 0) {
194 blendMode = SDL_BLENDMODE_MOD;
195 consumed = 2;
193 } 196 }
194 } 197 }
195 } else if (SDL_strcasecmp(argv[i], "--cyclecolor") == 0) { 198 } else if (SDL_strcasecmp(argv[i], "--cyclecolor") == 0) {
196 cycle_color = SDL_TRUE; 199 cycle_color = SDL_TRUE;
197 consumed = 1; 200 consumed = 1;
203 consumed = 1; 206 consumed = 1;
204 } 207 }
205 } 208 }
206 if (consumed < 0) { 209 if (consumed < 0) {
207 fprintf(stderr, 210 fprintf(stderr,
208 "Usage: %s %s [--blend none|blend|add] [--cyclecolor] [--cyclealpha]\n", 211 "Usage: %s %s [--blend none|blend|add|mod] [--cyclecolor] [--cyclealpha]\n",
209 argv[0], CommonUsage(state)); 212 argv[0], CommonUsage(state));
210 return 1; 213 return 1;
211 } 214 }
212 i += consumed; 215 i += consumed;
213 } 216 }