showimage.c
changeset 368 8a61842d00ce
parent 366 f58b3461c128
child 391 cf211e9ff224
equal deleted inserted replaced
367:b2aa197f6774 368:8a61842d00ce
    72         if ( strcmp(argv[i], "-fullscreen") == 0 ) {
    72         if ( strcmp(argv[i], "-fullscreen") == 0 ) {
    73             SDL_ShowCursor(0);
    73             SDL_ShowCursor(0);
    74             flags |= SDL_WINDOW_FULLSCREEN;
    74             flags |= SDL_WINDOW_FULLSCREEN;
    75         }
    75         }
    76     }
    76     }
    77     
    77 
    78     if (SDL_CreateWindowAndRenderer(0, 0, flags, &window, &renderer) < 0) {
    78     if (SDL_CreateWindowAndRenderer(0, 0, flags, &window, &renderer) < 0) {
    79         fprintf(stderr, "SDL_CreateWindowAndRenderer() failed: %s\n", SDL_GetError());
    79         fprintf(stderr, "SDL_CreateWindowAndRenderer() failed: %s\n", SDL_GetError());
    80         return(2);
    80         return(2);
    81     }
    81     }
    82 
    82