gwin->paint_splash();
static void Init	(	)	{	if (SDL_Init(SDL_INIT_VIDEO|SDL_INIT_TIMER|						SDL_INIT_AUDIO) < 0)		{		cerr << "Unable to initialize SDL: " << SDL_GetError() << endl;		exit(-1);		}	atexit(SDL_Quit);	audio->Init(9615*2,2);	SDL_SysWMinfo info;		// Get system info.	SDL_VERSION(&info.version);					// Ignore clicks until splash done.		int w, h;#ifdef XWIN	SDL_GetWMInfo(&info);	display = info.info.x11.display;	xfd = ConnectionNumber(display);	int screen_num = DefaultScreen(display);	unsigned int display_width = DisplayWidth(display, screen_num);	unsigned int display_height = DisplayHeight(display, screen_num);					// Make window 1/2 size of screen.	w = display_width/2, h = display_height/2;	if (w < 500)		w = 500;	if (h < 400)		h = 400;#else	w = 640;	h = 480;#endif //not XWIN	int sw, sh;			// Get screen size.	config->value("config/video/width", sw, w);	config->value("config/video/height", sh, h);	gwin = new Game_window(sw, sh);#ifdef WIN32	//enable unknown (to SDL) window messages, including MM_MCINOTIFY	//(for MIDI repeats)	SDL_EventState(SDL_SYSWMEVENT, SDL_ENABLE);#endif //WIN32	string yn;					// Skip intro. scene?	config->value("config/gameplay/skip_intro", yn, "no");	if (yn == "yes")		gwin->get_usecode()->set_global_flag(			Usecode_machine::did_first_scene, 1);					// Have Trinsic password?	config->value("config/gameplay/have_trinsic_password", yn, "no");	if (yn == "yes")		gwin->get_usecode()->set_global_flag(			Usecode_machine::have_trinsic_password, 1);					// Skip splash screen?	config->value("config/gameplay/skip_splash", yn, "no");	if(yn == "no") {		gwin->set_mode(Game_window::splash);		SDL_SetEventFilter(Filter_splash_events);	} else {		gwin->set_mode(Game_window::normal);		SDL_SetEventFilter(Filter_intro_events);		gwin->setup_game();		// This will start the scene.	}	}