MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / SDLInit

Function SDLInit

src/Engine/Flc.cpp:53–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51
52#if 0
53void SDLInit(char *header)
54{ /* Initialize SDL
55 */
56 printf("SDL: Version %d.%d.%d.\n", SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_PATCHLEVEL);
57
58 if(SDL_Init(SDL_INIT_VIDEO)<0) {
59 fprintf(stderr, "SDL: Couldn't initialize: %s\n",SDL_GetError());
60 exit(2);
61 } else {
62 fprintf(stdout, "SDL: Video initialization succeeded.\n");
63 }
64 atexit(SDL_Quit);
65/* Init screen
66*/
67 if((flc.mainscreen=SDL_SetVideoMode(flc.screen_w, flc.screen_h, flc.screen_depth, (SDL_HWPALETTE|SDL_FULLSCREEN))) == NULL){
68 fprintf(stderr, "SDL: Couldn't set video mode %dx%dx%d: %s\n", flc.screen_w, flc.screen_h, flc.screen_depth, SDL_GetError());
69 exit(3);
70 }
71
72/* Set titlebar and iconbar name
73*/
74 SDL_WM_SetCaption(header, header);
75} /* SDLInit */
76
77#endif
78

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected