XilinxProcessorIPLib/drivers/tft/src/xtft.c
void XTft_ClearScreen(XTft *InstancePtr)
{
	/*
	 * Assert validates the input arguments.
	 */
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);

	/*
	 * Fills the screen with the background color of Instance structure.
	 */
	XTft_FillScreen(InstancePtr, XTFT_DEF_COLVAL, XTFT_DEF_ROWVAL,
			(XTFT_DISPLAY_WIDTH - 1), (XTFT_DISPLAY_HEIGHT - 1),
			InstancePtr->BgColor);

	/*
	 * Initialize the column, row positions to (0, 0)origin.
	 */
	InstancePtr->ColVal = XTFT_DEF_COLVAL;
	InstancePtr->RowVal = XTFT_DEF_ROWVAL;

}
/***************************************************************************/
/**
*
* This function re-initializes all the pixels to the default background color.
*
* @param	InstancePtr is a pointer to the XTft instance.
*
* @return	None.
*
* @note		None.
*
****************************************************************************/
This function re-initializes all the pixels to the default background color.
This function re - initializes all the pixels to the default background color .
void XTft_ClearScreen(XTft *InstancePtr)
{
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	XTft_FillScreen(InstancePtr, XTFT_DEF_COLVAL, XTFT_DEF_ROWVAL,
			(XTFT_DISPLAY_WIDTH - 1), (XTFT_DISPLAY_HEIGHT - 1),
			InstancePtr->BgColor);
	InstancePtr->ColVal = XTFT_DEF_COLVAL;
	InstancePtr->RowVal = XTFT_DEF_ROWVAL;
}
void XTft_ClearScreen ( XTft * InstancePtr ) { Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; XTft_FillScreen ( InstancePtr , XTFT_DEF_COLVAL , XTFT_DEF_ROWVAL , ( XTFT_DISPLAY_WIDTH - 1 ) , ( XTFT_DISPLAY_HEIGHT - 1 ) , InstancePtr -> BgColor ) ; InstancePtr -> ColVal = XTFT_DEF_COLVAL ; InstancePtr -> RowVal = XTFT_DEF_ROWVAL ; }
This function re-initializes all the pixels to the default background color.
This function re - initializes all the pixels to the default background color .
/*
	 * Assert validates the input arguments.
	 */ /*
	 * Fills the screen with the background color of Instance structure.
	 */ /*
	 * Initialize the column, row positions to (0, 0)origin.
	 */