src/bbcvdu.c
// Convert pixel coordinates to location in 'chrmap'
Convert pixel coordinates to location in 'chrmap'
Convert pixel coordinates to location in ' chrmap '
static void p2c (int x, int y, short **pc, short **sl, int *nc, int *oc)
{
	*nc = ((XSCREEN + 7) >> 3) ;	
	*oc = x / charx ;		
	*sl = chrmap + (y / chary) * (*nc) ; 
	*pc = *sl + *oc ;		
}
static void p2c ( int x , int y , short * * pc , short * * sl , int * nc , int * oc ) { * nc = ( ( XSCREEN + 7 ) >> 3 ) ; * oc = x / charx ; * sl = chrmap + ( y / chary ) * ( * nc ) ; * pc = * sl + * oc ; }
Convert pixel coordinates to location in 'chrmap'
Convert pixel coordinates to location in ' chrmap '
// no. of (wide) chars per line // char offset from line start // pointer to line start // pointer to chrmap