testprograms: parse arguments using SDLTest_CommonState

This commit is contained in:
Anonymous Maarten authored and Anonymous Maarten committed 2023-03-17 17:54:16 +01:00
1 parent 8bea41f737
commit 4a6528e3f0
71 files changed
+1516 -389

No files matched your search

+3 -3
View File
@@ -33,15 +33,15 @@ int main(int argc, char *argv[])
float x = 0.0f, y = 0.0f;
unsigned int windowID = 0;
/* Enable standard application logging */
SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
/* Initialize test framework */
state = SDLTest_CommonCreateState(argv, SDL_INIT_VIDEO);
if (state == NULL) {
return 1;
}
/* Enable standard application logging */
SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
for (i = 1; i < argc;) {
int consumed;