Source/ThunderBeast/QuakeToonProto1/linux/rw_x11.c
int SWimp_Init( void *hInstance, void *wndProc )
{

	vid_xpos = ri.Cvar_Get ("vid_xpos", "3", CVAR_ARCHIVE);
	vid_ypos = ri.Cvar_Get ("vid_ypos", "22", CVAR_ARCHIVE);

// open the display
	dpy = XOpenDisplay(0);
	if (!dpy)
	{
		if (getenv("DISPLAY"))
			Sys_Error("VID: Could not open display [%s]\n",
				getenv("DISPLAY"));
		else
			Sys_Error("VID: Could not open local display\n");
	}

// catch signals so i can turn on auto-repeat

	{
		struct sigaction sa;
		sigaction(SIGINT, 0, &sa);
		sa.sa_handler = TragicDeath;
		sigaction(SIGINT, &sa, 0);
		sigaction(SIGTERM, &sa, 0);
	}

	return true;
}
/*
** SWimp_Init
**
** This routine is responsible for initializing the implementation
** specific stuff in a software rendering subsystem.
*/
SWimp_Init
This routine is responsible for initializing the implementation
specific stuff in a software rendering subsystem.
SWimp_Init This routine is responsible for initializing the implementation specific stuff in a software rendering subsystem .
int SWimp_Init( void *hInstance, void *wndProc )
{
	vid_xpos = ri.Cvar_Get ("vid_xpos", "3", CVAR_ARCHIVE);
	vid_ypos = ri.Cvar_Get ("vid_ypos", "22", CVAR_ARCHIVE);
	dpy = XOpenDisplay(0);
	if (!dpy)
	{
		if (getenv("DISPLAY"))
			Sys_Error("VID: Could not open display [%s]\n",
				getenv("DISPLAY"));
		else
			Sys_Error("VID: Could not open local display\n");
	}
	{
		struct sigaction sa;
		sigaction(SIGINT, 0, &sa);
		sa.sa_handler = TragicDeath;
		sigaction(SIGINT, &sa, 0);
		sigaction(SIGTERM, &sa, 0);
	}
	return true;
}
int SWimp_Init ( void * hInstance , void * wndProc ) { vid_xpos = ri . Cvar_Get ( " " , " " , CVAR_ARCHIVE ) ; vid_ypos = ri . Cvar_Get ( " " , " " , CVAR_ARCHIVE ) ; dpy = XOpenDisplay ( 0 ) ; if ( ! dpy ) { if ( getenv ( " " ) ) Sys_Error ( " \n " , getenv ( " " ) ) ; else Sys_Error ( " \n " ) ; } { struct sigaction sa ; sigaction ( SIGINT , 0 , & sa ) ; sa . sa_handler = TragicDeath ; sigaction ( SIGINT , & sa , 0 ) ; sigaction ( SIGTERM , & sa , 0 ) ; } return true ; }
SWimp_Init
This routine is responsible for initializing the implementation
specific stuff in a software rendering subsystem.
SWimp_Init This routine is responsible for initializing the implementation specific stuff in a software rendering subsystem .
// open the display // catch signals so i can turn on auto-repeat