lv_hal_disp: add disp_flush

This commit is contained in:
Gabor Kiss-Vamosi
2017-11-29 10:46:59 +01:00
parent 9d87a82210
commit cc7128ce4c
7 changed files with 162 additions and 120 deletions

View File

@@ -119,12 +119,12 @@ lv_disp_t * lv_disp_next(lv_disp_t * disp)
}
/**
* Fill a rectangular area with a color on the active display
* Write the content of the internal buffer (VDB) to the display
* @param x1 left coordinate of the rectangle
* @param x2 right coordinate of the rectangle
* @param y1 top coordinate of the rectangle
* @param y2 bottom coordinate of the rectangle
* @param color fill color
* @param color_p fill color
*/
void lv_disp_fill(int32_t x1, int32_t y1, int32_t x2, int32_t y2, lv_color_t color)
{
@@ -132,6 +132,20 @@ void lv_disp_fill(int32_t x1, int32_t y1, int32_t x2, int32_t y2, lv_color_t col
if(active->driver.disp_fill != NULL) active->driver.disp_fill(x1, y1, x2, y2, color);
}
/**
* Fill a rectangular area with a color on the active display
* @param x1 left coordinate of the rectangle
* @param x2 right coordinate of the rectangle
* @param y1 top coordinate of the rectangle
* @param y2 bottom coordinate of the rectangle
* @param color_p pointer to an array of colors
*/
void lv_disp_flush(int32_t x1, int32_t y1, int32_t x2, int32_t y2, lv_color_t *color_p)
{
if(active == NULL) return;
if(active->driver.disp_flush != NULL) active->driver.disp_flush(x1, y1, x2, y2, color_p);
}
/**
* Put a color map to a rectangular area on the active display
* @param x1 left coordinate of the rectangle