Source/ThunderBeast/QuakeToon/client/menu.c
void M_DrawCursor( int x, int y, int f )
{
	char	cursorname[80];
	static qboolean cached;

	if ( !cached )
	{
		int i;

		for ( i = 0; i < NUM_CURSOR_FRAMES; i++ )
		{
			Com_sprintf( cursorname, sizeof( cursorname ), "m_cursor%d", i );

			re.RegisterPic( cursorname );
		}
		cached = true;
	}

	Com_sprintf( cursorname, sizeof(cursorname), "m_cursor%d", f );
	re.DrawPic( x, y, cursorname );
}
/*
=============
M_DrawCursor

Draws an animating cursor with the point at
x,y.  The pic will extend to the left of x,
and both above and below y.
=============
*/
M_DrawCursor
Draws an animating cursor with the point at
x,y.  The pic will extend to the left of x,
and both above and below y.
M_DrawCursor Draws an animating cursor with the point at x y . The pic will extend to the left of x and both above and below y .
void M_DrawCursor( int x, int y, int f )
{
	char	cursorname[80];
	static qboolean cached;
	if ( !cached )
	{
		int i;
		for ( i = 0; i < NUM_CURSOR_FRAMES; i++ )
		{
			Com_sprintf( cursorname, sizeof( cursorname ), "m_cursor%d", i );
			re.RegisterPic( cursorname );
		}
		cached = true;
	}
	Com_sprintf( cursorname, sizeof(cursorname), "m_cursor%d", f );
	re.DrawPic( x, y, cursorname );
}
void M_DrawCursor ( int x , int y , int f ) { char cursorname [ 80 ] ; static qboolean cached ; if ( ! cached ) { int i ; for ( i = 0 ; i < NUM_CURSOR_FRAMES ; i ++ ) { Com_sprintf ( cursorname , sizeof ( cursorname ) , " " , i ) ; re . RegisterPic ( cursorname ) ; } cached = true ; } Com_sprintf ( cursorname , sizeof ( cursorname ) , " " , f ) ; re . DrawPic ( x , y , cursorname ) ; }
M_DrawCursor
Draws an animating cursor with the point at
x,y.
M_DrawCursor Draws an animating cursor with the point at x y .