瀏覽代碼

fix:lcd.fill少绘制一行

Dozingfiretruck 2 年之前
父節點
當前提交
3e671cb6fe
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      components/lcd/luat_lcd.c

+ 1 - 1
components/lcd/luat_lcd.c

@@ -260,7 +260,7 @@ int luat_lcd_clear(luat_lcd_conf_t* conf, luat_color_t color){
 
 int luat_lcd_draw_fill(luat_lcd_conf_t* conf,uint16_t x1,uint16_t y1,uint16_t x2,uint16_t y2, luat_color_t color) {          
 	uint16_t i;
-	for(i=y1;i<y2;i++)
+	for(i=y1;i<=y2;i++)
 	{
 		luat_lcd_draw_line(conf, x1, i, x2, i, color);
 	}