test/testbounds.c
changeset 10152 4960666f31ac
parent 10019 36f7e8084508
equal deleted inserted replaced
10151:33d1646359f0 10152:4960666f31ac
    16 {
    16 {
    17     int total, i;
    17     int total, i;
    18 
    18 
    19     if (SDL_Init(SDL_INIT_VIDEO) < 0) {
    19     if (SDL_Init(SDL_INIT_VIDEO) < 0) {
    20         SDL_Log("SDL_Init(SDL_INIT_VIDEO) failed: %s", SDL_GetError());
    20         SDL_Log("SDL_Init(SDL_INIT_VIDEO) failed: %s", SDL_GetError());
       
    21         return 1;
    21     }
    22     }
    22 
    23 
    23     total = SDL_GetNumVideoDisplays();
    24     total = SDL_GetNumVideoDisplays();
    24     for (i = 0; i < total; i++) {
    25     for (i = 0; i < total; i++) {
    25         SDL_Rect bounds = { -1,-1,-1,-1 }, usable = { -1,-1,-1,-1 };
    26         SDL_Rect bounds = { -1,-1,-1,-1 }, usable = { -1,-1,-1,-1 };