gwin = new Game_window(display_width/2, display_height/2);
int w = display_width/2, h = display_height/2; if (w < 500) w = 500; if (h < 400) h = 400; gwin = new Game_window(w, h);
static void Init	(	)	{	if (SDL_Init(SDL_INIT_VIDEO|SDL_INIT_TIMER) < 0)		{		cerr << "Unable to initialize SDL: " << SDL_GetError() << '\n';		exit(-1);		}	SDL_SysWMinfo info;		// Get system info.	SDL_VERSION(&info.version);#ifdef XWIN	SDL_GetWMInfo(&info);	display = info.info.x11.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.	gwin = new Game_window(display_width/2, display_height/2);#else	gwin = new Game_window(640, 480);#endif	}