BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lvgl
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
lvgl
Commits
8978f271
Commit
8978f271
authored
Mar 01, 2018
by
jian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix the number of gauge's label count is not inherited
parent
fa6eb2fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
lv_gauge.c
lv_objx/lv_gauge.c
+4
-4
No files found.
lv_objx/lv_gauge.c
View file @
8978f271
/**
* @file lv_gauge.c
*
*
*/
...
...
@@ -65,7 +65,7 @@ lv_obj_t * lv_gauge_create(lv_obj_t * par, lv_obj_t * copy)
/*Create the ancestor gauge*/
lv_obj_t
*
new_gauge
=
lv_lmeter_create
(
par
,
copy
);
lv_mem_assert
(
new_gauge
);
/*Allocate the gauge type specific extended data*/
lv_gauge_ext_t
*
ext
=
lv_obj_allocate_ext_attr
(
new_gauge
,
sizeof
(
lv_gauge_ext_t
));
lv_mem_assert
(
ext
);
...
...
@@ -106,11 +106,11 @@ lv_obj_t * lv_gauge_create(lv_obj_t * par, lv_obj_t * copy)
for
(
i
=
0
;
i
<
ext
->
needle_count
;
i
++
)
{
ext
->
values
[
i
]
=
copy_ext
->
values
[
i
];
}
ext
->
label_count
=
copy_ext
->
label_count
;
/*Refresh the style with new signal function*/
lv_obj_refresh_style
(
new_gauge
);
}
return
new_gauge
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment