From c26635ed3ef609e03828a477a8c59278085d601f Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Tue, 10 Mar 2020 13:28:33 +0100 Subject: [PATCH] Update lv_port_disp_template.c --- porting/lv_port_disp_template.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/porting/lv_port_disp_template.c b/porting/lv_port_disp_template.c index 9752d5d92..439da5e65 100644 --- a/porting/lv_port_disp_template.c +++ b/porting/lv_port_disp_template.c @@ -179,8 +179,8 @@ static void gpu_fill(lv_disp_drv_t * disp_drv, lv_color_t * dest_buf, lv_coord_t int32_t x, y; dest_buf += dest_width * fill_area->y1; /*Go to the first line*/ - for(y = fill_area->y1; y < fill_area->y2; y++) { - for(x = fill_area->x1; x < fill_area->x2; x++) { + for(y = fill_area->y1; y <= fill_area->y2; y++) { + for(x = fill_area->x1; x <= fill_area->x2; x++) { dest_buf[x] = color; } dest_buf+=dest_width; /*Go to the next line*/