Exemple #1
0
/*
==================
Con_DrawConsole
==================
*/
void Con_DrawConsole( void )
{
	// check for console width changes from a vid mode change
	Con_CheckResize();

	// if disconnected, render console full screen
	if ( cls.state == CA_DISCONNECTED )
	{
		if ( !( cls.keyCatchers & ( KEYCATCH_UI | KEYCATCH_CGAME ) ) )
		{
			Con_DrawSolidConsole( 1.0 );
			return;
		}
	}

	if ( con.displayFrac )
	{
		Con_DrawSolidConsole( con.displayFrac );
	}
	else
	{
		// draw notify lines
		if ( cls.state == CA_ACTIVE && con_drawnotify->integer )
		{
			Con_DrawNotify();
		}
	}
}
Exemple #2
0
/*
==================
Con_DrawConsole
==================
*/
void Con_DrawConsole( connstate_t state ) {
	// if disconnected, render console full screen
	if ( state == CA_DISCONNECTED ) {
		if ( !( trap_Key_GetCatcher( ) & KEYCATCH_UI) ) {
			Con_DrawSolidConsole( state, 1.0f );
			return;
		}
	}

	if ( con.displayFrac ) {
		Con_DrawSolidConsole( state, con.displayFrac );
	}
}