test/testwm2.c
branchSDL-1.3
changeset 1725 98a3207ddde8
parent 1719 5b9f50c957ed
child 1733 0b1070f2f94d
equal deleted inserted replaced
1724:6c63fc2bd986 1725:98a3207ddde8
    35 
    35 
    36     num_windows = NUM_WINDOWS;
    36     num_windows = NUM_WINDOWS;
    37     window_w = WINDOW_W;
    37     window_w = WINDOW_W;
    38     window_h = WINDOW_H;
    38     window_h = WINDOW_H;
    39     while (argc > 1) {
    39     while (argc > 1) {
    40         --argc;
       
    41         if (strcmp(argv[argc - 1], "-width") == 0) {
    40         if (strcmp(argv[argc - 1], "-width") == 0) {
    42             window_w = atoi(argv[argc]);
    41             window_w = atoi(argv[argc]);
    43             --argc;
    42             --argc;
    44         } else if (strcmp(argv[argc - 1], "-height") == 0) {
    43         } else if (strcmp(argv[argc - 1], "-height") == 0) {
    45             window_h = atoi(argv[argc]);
    44             window_h = atoi(argv[argc]);