test/testdisplayinfo.c
changeset 9922 b066d5fd5fa7
parent 9833 c3214bb33a1d
child 9998 f67cf37e9cd4
equal deleted inserted replaced
9921:8865d17947de 9922:b066d5fd5fa7
    32 main(int argc, char *argv[])
    32 main(int argc, char *argv[])
    33 {
    33 {
    34     SDL_DisplayMode mode;
    34     SDL_DisplayMode mode;
    35     int num_displays, dpy;
    35     int num_displays, dpy;
    36 
    36 
    37 	/* Enable standard application logging */
    37     /* Enable standard application logging */
    38 	SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
    38     SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
    39 
    39 
    40     /* Load the SDL library */
    40     /* Load the SDL library */
    41     if (SDL_Init(SDL_INIT_VIDEO) < 0) {
    41     if (SDL_Init(SDL_INIT_VIDEO) < 0) {
    42         SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't initialize SDL: %s\n", SDL_GetError());
    42         SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't initialize SDL: %s\n", SDL_GetError());
    43         return 1;
    43         return 1;