test/common.c
changeset 2209 b292fa4941c6
parent 2185 2032348afed1
child 2268 4baee598306d
--- 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]) {