Skip to content
Snippets Groups Projects
Commit 01a2877c authored by dg's avatar dg
Browse files

pop

git-svn-id: http://svn.net-core.org/repos/t-engine4@4063 51575b47-30f0-44d4-a5cc-537603b46e54
parent c4d77fc5
No related branches found
No related tags found
No related merge requests found
......@@ -893,13 +893,25 @@ int main(int argc, char *argv[])
// RNG init
init_gen_rand(time(NULL));
int vid_drv;
for (vid_drv = 0; vid_drv < SDL_GetNumVideoDrivers(); vid_drv++)
{
printf("Available video driver: %s\n", SDL_GetVideoDriver(vid_drv));
}
// initialize engine and set up resolution and depth
Uint32 flags=SDL_INIT_VIDEO | SDL_INIT_TIMER;
Uint32 flags=SDL_INIT_TIMER;
if (SDL_Init (flags) < 0) {
printf("cannot initialize SDL: %s\n", SDL_GetError ());
return;
return 1;
}
if (SDL_VideoInit(NULL) != 0) {
printf("Error initializing SDL video: %s\n", SDL_GetError());
return 2;
}
// Filter events, to catch the quit event
SDL_SetEventFilter(event_filter, NULL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment