testprogram: add option to use SDL_BLENDMODE_MUL

This commit is contained in:
Sylvain authored and Sylvain Becker committed 2023-03-15 22:00:13 +01:00
1 parent b07a049923
commit 4312abab69
4 files changed
+16 -4

No files matched your search

+4 -1
View File
@@ -317,6 +317,9 @@ int main(int argc, char *argv[])
} else if (SDL_strcasecmp(argv[i + 1], "mod") == 0) {
blendMode = SDL_BLENDMODE_MOD;
consumed = 2;
} else if (SDL_strcasecmp(argv[i + 1], "mul") == 0) {
blendMode = SDL_BLENDMODE_MUL;
consumed = 2;
}
}
} else if (SDL_strcasecmp(argv[i], "--cyclecolor") == 0) {
@@ -331,7 +334,7 @@ int main(int argc, char *argv[])
}
}
if (consumed < 0) {
static const char *options[] = { "[--blend none|blend|add|mod]", "[--cyclecolor]", "[--cyclealpha]", NULL };
static const char *options[] = { "[--blend none|blend|add|mod|mul]", "[--cyclecolor]", "[--cyclealpha]", NULL };
SDLTest_CommonLogUsage(state, argv[0], options);
return 1;
}