From c5b2ddc6c9ea1818a2a4a866cf8e2ff5d531c5c9 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 23 Jul 2007 01:11:52 +0000 Subject: [PATCH] Added support for the --depth command line option --- test/common.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/common.c b/test/common.c index 2dcae9f20..47981339d 100644 --- a/test/common.c +++ b/test/common.c @@ -161,6 +161,14 @@ CommonArg(CommonState * state, int index) state->window_h = SDL_atoi(h); return 2; } + if (SDL_strcasecmp(argv[index], "--depth") == 0) { + ++index; + if (!argv[index]) { + return -1; + } + state->depth = SDL_atoi(argv[index]); + return 2; + } if (SDL_strcasecmp(argv[index], "--refresh") == 0) { ++index; if (!argv[index]) {