test/testwm2.c
branchSDL-1.3
changeset 1733 0b1070f2f94d
parent 1725 98a3207ddde8
equal deleted inserted replaced
1732:fd65f12b6de6 1733:0b1070f2f94d
    47             fprintf(stderr, "Usage: %s [-width] [-height]\n", argv[0]);
    47             fprintf(stderr, "Usage: %s [-width] [-height]\n", argv[0]);
    48             quit(1);
    48             quit(1);
    49         }
    49         }
    50     }
    50     }
    51 
    51 
    52     /* Set the desktop mode, we don't care what it is */
       
    53     if (SDL_SetDisplayMode(NULL) < 0) {
       
    54         fprintf(stderr, "Couldn't set display mode: %s\n", SDL_GetError());
       
    55         quit(2);
       
    56     }
       
    57 
       
    58     /* Create the windows */
    52     /* Create the windows */
    59     windows = (SDL_WindowID *) SDL_malloc(num_windows * sizeof(*windows));
    53     windows = (SDL_WindowID *) SDL_malloc(num_windows * sizeof(*windows));
    60     if (!windows) {
    54     if (!windows) {
    61         fprintf(stderr, "Out of memory!\n");
    55         fprintf(stderr, "Out of memory!\n");
    62         quit(2);
    56         quit(2);