style: minor fix on getting style attributes + formatting
This commit is contained in:
@@ -557,7 +557,7 @@ int16_t _lv_style_get_int(const lv_style_t * style, lv_style_property_t prop, vo
|
|||||||
else {
|
else {
|
||||||
_lv_memcpy_small(res, &style->map[id + sizeof(lv_style_property_t)], sizeof(lv_style_int_t));
|
_lv_memcpy_small(res, &style->map[id + sizeof(lv_style_property_t)], sizeof(lv_style_int_t));
|
||||||
lv_style_attr_t attr_act;
|
lv_style_attr_t attr_act;
|
||||||
attr_act = get_style_prop_attr(style, id + 1);
|
attr_act = get_style_prop_attr(style, id);
|
||||||
|
|
||||||
lv_style_attr_t attr_goal;
|
lv_style_attr_t attr_goal;
|
||||||
attr_goal = (prop >> 8) & 0xFF;
|
attr_goal = (prop >> 8) & 0xFF;
|
||||||
|
|||||||
@@ -83,8 +83,8 @@ typedef uint8_t lv_text_decor_t;
|
|||||||
|
|
||||||
typedef uint8_t lv_style_attr_t;
|
typedef uint8_t lv_style_attr_t;
|
||||||
|
|
||||||
#define LV_STYLE_ATTR_GET_INHERIT(f) ((f)&0xA0)
|
#define LV_STYLE_ATTR_GET_INHERIT(f) ((f)&0x80)
|
||||||
#define LV_STYLE_ATTR_GET_STATE(f) ((f)&0x3F)
|
#define LV_STYLE_ATTR_GET_STATE(f) ((f)&0x7F)
|
||||||
|
|
||||||
#define LV_STYLE_ID_VALUE 0x0 /*max 9 pcs*/
|
#define LV_STYLE_ID_VALUE 0x0 /*max 9 pcs*/
|
||||||
#define LV_STYLE_ID_COLOR 0x9 /*max 3 pcs*/
|
#define LV_STYLE_ID_COLOR 0x9 /*max 3 pcs*/
|
||||||
|
|||||||
Reference in New Issue
Block a user