From 044194c64ecaa7ae7b3c2dfba80c310ca5706db2 Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Thu, 20 Sep 2018 22:16:30 +0200 Subject: [PATCH] minor fixes --- lv_conf_templ.h | 1 + lv_draw/lv_draw_arc.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lv_conf_templ.h b/lv_conf_templ.h index f19cdc056..9e71db0ec 100644 --- a/lv_conf_templ.h +++ b/lv_conf_templ.h @@ -70,6 +70,7 @@ #define LV_COLOR_DEPTH 16 /*Color depth: 1/8/16/24*/ #define LV_COLOR_16_SWAP 0 /*Swap the 2 bytes of RGB565 color. Useful if the display has a 8 bit interface (e.g. SPI)*/ #define LV_COLOR_TRANSP LV_COLOR_LIME /*Images pixels with this color will not be drawn (with chroma keying)*/ +#define LV_COLOR_SCREEN_TRANSP 0 /*1: Enable screen transparency. Useful for OSD or other overlapping GUIs. Requires ARGB8888 colors*/ /*Text settings*/ #define LV_TXT_UTF8 1 /*Enable UTF-8 coded Unicode character usage */ diff --git a/lv_draw/lv_draw_arc.c b/lv_draw/lv_draw_arc.c index 30cee7c96..525e56b79 100644 --- a/lv_draw/lv_draw_arc.c +++ b/lv_draw/lv_draw_arc.c @@ -62,7 +62,7 @@ void lv_draw_arc(lv_coord_t center_x, lv_coord_t center_y, uint16_t radius, cons lv_coord_t x_start[4]; lv_coord_t x_end[4]; - lv_color_t color = style->body.main_color; + lv_color_t color = style->line.color; lv_opa_t opa = opa_scale == LV_OPA_COVER ? style->body.opa : (uint16_t)((uint16_t) style->body.opa * opa_scale) >> 8;