src/bbcvdu.c
// Set default palette and colours:
Set default palette and colours.
Set default palette and colours .
static void rescol (void)
{
	int i, n = (colmsk & (NUMCOLOURS - 1)) + 1 ;
	unsigned int *p ;
	switch (n)
	{
	case 2:
		p = coltb2 ;
		break ;
	case 4:
		p = coltb4 ;
		break ;
	default:
		p = coltab ;
	}
	for (i = 0; i < n; i++)
		palette[i] = p[i] ;
	txtfor = colmsk & 7 ;
	txtbak = 0 ;
	gcol (0, txtfor) ;
	gcol (0, 0x80) ;
}
static void rescol ( void ) { int i , n = ( colmsk & ( NUMCOLOURS - 1 ) ) + 1 ; unsigned int * p ; switch ( n ) { case 2 : p = coltb2 ; break ; case 4 : p = coltb4 ; break ; default : p = coltab ; } for ( i = 0 ; i < n ; i ++ ) palette [ i ] = p [ i ] ; txtfor = colmsk & 7 ; txtbak = 0 ; gcol ( 0 , txtfor ) ; gcol ( 0 , 0x80 ) ; }
Set default palette and colours:
Set default palette and colours :