mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
Corrected warning in theme material (#1168)
Corrected warning for unused variable hue2 in the function style_mod_edit of the material theme in case color depth = 1.
This commit is contained in:
parent
1efff93dda
commit
ebb29f09fb
@ -830,11 +830,10 @@ static void style_mod(lv_group_t * group, lv_style_t * style)
|
||||
|
||||
static void style_mod_edit(lv_group_t * group, lv_style_t * style)
|
||||
{
|
||||
|
||||
uint16_t hue2 = (_hue + 300) % 360;
|
||||
|
||||
(void)group; /*Unused*/
|
||||
#if LV_COLOR_DEPTH != 1
|
||||
uint16_t hue2 = (_hue + 300) % 360;
|
||||
|
||||
/*Make the style to be a little bit orange*/
|
||||
style->body.border.opa = LV_OPA_COVER;
|
||||
style->body.border.color = LV_COLOR_GREEN;
|
||||
|
Loading…
x
Reference in New Issue
Block a user