From 7a73cb00a533f87e662b67428468e2ac10e01bed Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Mon, 29 Jul 2019 11:00:28 +0200 Subject: [PATCH] fix display_template example --- porting/lv_port_disp_template.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/porting/lv_port_disp_template.c b/porting/lv_port_disp_template.c index e1955d447d..295dbe1cb3 100644 --- a/porting/lv_port_disp_template.c +++ b/porting/lv_port_disp_template.c @@ -163,7 +163,6 @@ static void disp_flush(lv_disp_drv_t * disp_drv, const lv_area_t * area, lv_colo static void gpu_blend(lv_disp_drv_t * disp_drv, lv_color_t * dest, const lv_color_t * src, uint32_t length, lv_opa_t opa) { /*It's an example code which should be done by your GPU*/ - uint32_t i; for(i = 0; i < length; i++) { dest[i] = lv_color_mix(dest[i], src[i], opa); @@ -185,12 +184,6 @@ static void gpu_fill_cb(lv_disp_drv_t * disp_drv, lv_color_t * dest_buf, lv_coor } dest_buf+=dest_width; /*Go to the next line*/ } - - - uint32_t i; - for(i = 0; i < length; i++) { - dest[i] = color; - } } #endif /*LV_USE_GPU*/