Added support for the --depth command line option
authorSam Lantinga <slouken@libsdl.org>
Mon, 23 Jul 2007 01:11:52 +0000
changeset 2209 b292fa4941c6
parent 2208 b03710fb0333
child 2210 1de324fce4e8
Added support for the --depth command line option
test/common.c
--- a/test/common.c	Sun Jul 22 13:22:47 2007 +0000
+++ b/test/common.c	Mon Jul 23 01:11:52 2007 +0000
@@ -161,6 +161,14 @@
         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]) {