- selectDetail(kContextWidth, kContextHeight, kBitsPerPixel, detail);
-
- SetupDSpFullScreen();
-
-
- if (!SDL_WasInit(SDL_INIT_VIDEO))
- {
- if (SDL_Init(SDL_INIT_VIDEO) == -1)
- {
- fprintf(stderr, "SDL_Init() failed: %s\n", SDL_GetError());
- return false;
- }
-
- if (SDL_GL_LoadLibrary(NULL) == -1)
- {
- fprintf(stderr, "SDL_GL_LoadLibrary() failed: %s\n", SDL_GetError());
- SDL_Quit();
- return false;
- }
-
- SDL_Rect **res = SDL_ListModes(NULL, SDL_FULLSCREEN|SDL_OPENGL);
- if ( (res == NULL) || (res == ((SDL_Rect **)-1)) || (res[0] == NULL) || (res[0]->w < 640) || (res[0]->h < 480) )
- res = hardcoded_resolutions;
+ SDL_Rect **res = SDL_ListModes(NULL, SDL_FULLSCREEN|SDL_OPENGL);
+ if ( (res == NULL) || (res == ((SDL_Rect **)-1)) || (res[0] == NULL) || (res[0]->w < 640) || (res[0]->h < 480) )
+ res = hardcoded_resolutions;