/* Fill the LCD buffer with the specified color.  */
void ili93xx_fill(ili93xx_color_t ul_color)
/* Fill the LCD buffer with the specified color.  */
void ili93xx_fill(ili93xx_color_t ul_color)
{
	uint32_t dw;
	if (g_uc_device_type == DEVICE_TYPE_ILI9325) {
		ili93xx_set_cursor_position(0, 0);
	} else if (g_uc_device_type == DEVICE_TYPE_ILI9341) {
		ili93xx_set_window(0, 0, g_ul_lcd_x_length, g_ul_lcd_y_length);
	}
	ili93xx_write_ram_prepare();
	for (dw = ILI93XX_LCD_WIDTH * ILI93XX_LCD_HEIGHT; dw > 0; dw--) {
		ili93xx_write_ram(ul_color);
	}
}