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
defa3a09
Commit
defa3a09
authored
Dec 02, 2017
by
Gabor Kiss-Vamosi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-5.0' of
https://github.com/littlevgl/lvgl
into dev-5.0
parents
15c2187c
cabf623e
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
13 additions
and
13 deletions
+13
-13
lv_obj.c
lv_core/lv_obj.c
+1
-1
lv_obj.h
lv_core/lv_obj.h
+1
-1
lv_style.c
lv_core/lv_style.c
+1
-1
lv_style.h
lv_core/lv_style.h
+1
-1
lv_anim.h
lv_misc/lv_anim.h
+2
-2
lv_color.h
lv_misc/lv_color.h
+4
-4
lv_img.c
lv_objx/lv_img.c
+1
-1
lv_img.h
lv_objx/lv_img.h
+2
-2
No files found.
lv_core/lv_obj.c
View file @
defa3a09
...
...
@@ -918,7 +918,7 @@ void lv_obj_animate(lv_obj_t * obj, lv_anim_builtin_t type, uint16_t time, uint1
lv_obj_t
*
par
=
lv_obj_get_parent
(
obj
);
/*Get the direction*/
bool
out
=
(
type
&
ANIM_DIR_MASK
)
==
ANIM_IN
?
false
:
true
;
bool
out
=
(
type
&
ANIM_DIR_MASK
)
==
LV_
ANIM_IN
?
false
:
true
;
type
=
type
&
(
~
ANIM_DIR_MASK
);
lv_anim_t
a
;
...
...
lv_core/lv_obj.h
View file @
defa3a09
...
...
@@ -47,7 +47,7 @@ extern "C" {
#error "LV: Small Virtual Display Buffer (lv_conf.h: LV_VDB_SIZE >= (2 * LV_HOR_RES))"
#endif
#define ANIM_IN 0x00
/*Animation to show an object. 'OR' it with lv_anim_builtin_t*/
#define
LV_
ANIM_IN 0x00
/*Animation to show an object. 'OR' it with lv_anim_builtin_t*/
#define ANIM_OUT 0x80
/*Animation to hide an object. 'OR' it with lv_anim_builtin_t*/
#define ANIM_DIR_MASK 0x80
/*ANIM_IN/ANIM_OUT mask*/
...
...
lv_core/lv_style.c
View file @
defa3a09
...
...
@@ -15,7 +15,7 @@
* DEFINES
*********************/
#if LV_NO_ANIM == 0
#define LV_STYLE_ANIM_RES 25
6
/*Animation max in 1024 steps*/
#define LV_STYLE_ANIM_RES 25
5
/*Animation max in 1024 steps*/
#define LV_STYLE_ANIM_SHIFT 8
/*log2(LV_STYLE_ANIM_RES)*/
#define VAL_PROP(v1, v2, r) v1 + (((v2-v1) * r) >> LV_STYLE_ANIM_SHIFT)
...
...
lv_core/lv_style.h
View file @
defa3a09
...
...
@@ -106,7 +106,7 @@ typedef struct {
const
lv_style_t
*
style_start
;
/*Pointer to the starting style*/
const
lv_style_t
*
style_end
;
/*Pointer to the destination style*/
lv_style_t
*
style_anim
;
/*Pointer to a style to animate*/
lv_anim_cb_t
end_cb
;
/*Call it when the animation is ready
*/
lv_anim_cb_t
end_cb
;
/*Call it when the animation is ready (NULL if unused)
*/
int16_t
time
;
/*Animation time in ms*/
int16_t
act_time
;
/*Current time in animation. Set to negative to make delay.*/
uint16_t
playback_pause
;
/*Wait before play back*/
...
...
lv_misc/lv_anim.h
View file @
defa3a09
...
...
@@ -62,8 +62,8 @@ lv_anim_t a;
a.var = obj;
a.start = lv_obj_get_height(obj);
a.end = new_height;
a.fp = (anim_fp_t)lv_obj_set_height;
a.path = anim_get_path(ANIM_PATH_LIN);
a.fp = (
lv_
anim_fp_t)lv_obj_set_height;
a.path = anim_get_path(
LV_
ANIM_PATH_LIN);
a.end_cb = NULL;
a.act_time = 0;
a.time = 200;
...
...
lv_misc/lv_color.h
View file @
defa3a09
...
...
@@ -100,16 +100,16 @@ typedef union
}
lv_color24_t
;
#if LV_COLOR_DEPTH == 1
typedef
uint8_t
color_int_t
;
typedef
uint8_t
lv_
color_int_t
;
typedef
lv_color1_t
lv_color_t
;
#elif LV_COLOR_DEPTH == 8
typedef
uint8_t
color_int_t
;
typedef
uint8_t
lv_
color_int_t
;
typedef
lv_color8_t
lv_color_t
;
#elif LV_COLOR_DEPTH == 16
typedef
uint16_t
color_int_t
;
typedef
uint16_t
lv_
color_int_t
;
typedef
lv_color16_t
lv_color_t
;
#elif LV_COLOR_DEPTH == 24
typedef
uint32_t
color_int_t
;
typedef
uint32_t
lv_
color_int_t
;
typedef
lv_color24_t
lv_color_t
;
#else
#error "Invalid LV_COLOR_DEPTH in misc_conf.h! Set it to 1, 8, 16 or 24!"
...
...
lv_objx/lv_img.c
View file @
defa3a09
...
...
@@ -100,7 +100,7 @@ lv_obj_t * lv_img_create(lv_obj_t * par, lv_obj_t * copy)
* @param data pointer to a color map with lv_img_raw_header_t header
* @return result of the file operation. FS_RES_OK or any error from lv_fs_res_t
*/
lv_fs_res_t
lv_img_create_file
(
const
char
*
fn
,
const
color_int_t
*
data
)
lv_fs_res_t
lv_img_create_file
(
const
char
*
fn
,
const
lv_
color_int_t
*
data
)
{
const
lv_img_raw_header_t
*
raw_p
=
(
lv_img_raw_header_t
*
)
data
;
lv_fs_res_t
res
;
...
...
lv_objx/lv_img.h
View file @
defa3a09
...
...
@@ -59,7 +59,7 @@ lv_obj_t * lv_img_create(lv_obj_t * par, lv_obj_t * copy);
* @param data pointer to a color map with lv_img_raw_header_t header
* @return result of the file operation. FS_RES_OK or any error from lv_fs_res_t
*/
lv_fs_res_t
lv_img_create_file
(
const
char
*
fn
,
const
color_int_t
*
data
);
lv_fs_res_t
lv_img_create_file
(
const
char
*
fn
,
const
lv_
color_int_t
*
data
);
/*=====================
* Setter functions
...
...
@@ -139,7 +139,7 @@ static inline lv_style_t* lv_img_get_style(lv_obj_t *img)
**********************/
/*Use this macro to declare an image in a c file*/
#define LV_IMG_DECLARE(var_name) extern const color_int_t var_name[];
#define LV_IMG_DECLARE(var_name) extern const
lv_
color_int_t var_name[];
#endif
/*USE_LV_IMG*/
...
...
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