src/bbcvdu.c
// Output a character to the screen.
Output a character to the screen.
Output a character to the screen .
static void charout(unsigned short ax, unsigned char fg, unsigned char bg,
                    int cx, int cy, int dx)
{
	SDL_Rect rect = {cx, cy, dx, chary} ;
	int col = 0xFFFFFFFF ;
	if (fg != 0xFF)
		col = palette [(int) fg] ;
	if (bg != 0xFF)
	{
		setcol (bg) ;
		SDL_RenderFillRect (memhdc, &rect) ;
	}
	if (vflags & UFONT)
		charttf (ax, col, rect) ;
	else
		characterColor (memhdc, cx, cy, ax, col) ;
	return ;
}
static void charout ( unsigned short ax , unsigned char fg , unsigned char bg , int cx , int cy , int dx ) { SDL_Rect rect = { cx , cy , dx , chary } ; int col = 0xFFFFFFFF ; if ( fg != 0xFF ) col = palette [ ( int ) fg ] ; if ( bg != 0xFF ) { setcol ( bg ) ; SDL_RenderFillRect ( memhdc , & rect ) ; } if ( vflags & UFONT ) charttf ( ax , col , rect ) ; else characterColor ( memhdc , cx , cy , ax , col ) ; return ; }
Output a character to the screen.
Output a character to the screen .