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
315bf64c
Commit
315bf64c
authored
Oct 05, 2017
by
Gabor Kiss-Vamosi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge utf8
parent
d1dcc41f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
lv_conf_templ.h
lv_conf_templ.h
+0
-1
lv_ta.c
lv_objx/lv_ta.c
+1
-4
No files found.
lv_conf_templ.h
View file @
315bf64c
...
@@ -134,7 +134,6 @@
...
@@ -134,7 +134,6 @@
/*Text area (dependencies: lv_label, lv_page)*/
/*Text area (dependencies: lv_label, lv_page)*/
#define USE_LV_TA 1
#define USE_LV_TA 1
#if USE_LV_TA != 0
#if USE_LV_TA != 0
#define LV_TA_MAX_LENGTH 256
#define LV_TA_CUR_BLINK_TIME 400 /*ms*/
#define LV_TA_CUR_BLINK_TIME 400 /*ms*/
#define LV_TA_PWD_SHOW_TIME 1500 /*ms*/
#define LV_TA_PWD_SHOW_TIME 1500 /*ms*/
#endif
#endif
...
...
lv_objx/lv_ta.c
View file @
315bf64c
...
@@ -309,8 +309,6 @@ void lv_ta_add_char(lv_obj_t * ta, uint32_t c)
...
@@ -309,8 +309,6 @@ void lv_ta_add_char(lv_obj_t * ta, uint32_t c)
void
lv_ta_add_text
(
lv_obj_t
*
ta
,
const
char
*
txt
)
void
lv_ta_add_text
(
lv_obj_t
*
ta
,
const
char
*
txt
)
{
{
lv_ta_ext_t
*
ext
=
lv_obj_get_ext
(
ta
);
lv_ta_ext_t
*
ext
=
lv_obj_get_ext
(
ta
);
const
char
*
label_txt
=
lv_label_get_text
(
ext
->
label
);
uint16_t
txt_len
=
strlen
(
txt
);
uint16_t
txt_len
=
strlen
(
txt
);
if
(
ext
->
pwd_mode
!=
0
)
pwd_char_hider
(
ta
);
/*Make sure all the current text contains only '*'*/
if
(
ext
->
pwd_mode
!=
0
)
pwd_char_hider
(
ta
);
/*Make sure all the current text contains only '*'*/
...
@@ -318,7 +316,6 @@ void lv_ta_add_text(lv_obj_t * ta, const char * txt)
...
@@ -318,7 +316,6 @@ void lv_ta_add_text(lv_obj_t * ta, const char * txt)
lv_label_ins_text
(
ext
->
label
,
ext
->
cursor_pos
,
txt
);
lv_label_ins_text
(
ext
->
label
,
ext
->
cursor_pos
,
txt
);
if
(
ext
->
pwd_mode
!=
0
)
{
if
(
ext
->
pwd_mode
!=
0
)
{
ext
->
pwd_tmp
=
dm_realloc
(
ext
->
pwd_tmp
,
strlen
(
ext
->
pwd_tmp
)
+
txt_len
+
1
);
ext
->
pwd_tmp
=
dm_realloc
(
ext
->
pwd_tmp
,
strlen
(
ext
->
pwd_tmp
)
+
txt_len
+
1
);
dm_assert
(
ext
->
pwd_tmp
);
dm_assert
(
ext
->
pwd_tmp
);
...
@@ -816,7 +813,7 @@ static bool lv_ta_design(lv_obj_t * ta, const area_t * masp, lv_design_mode_t mo
...
@@ -816,7 +813,7 @@ static bool lv_ta_design(lv_obj_t * ta, const area_t * masp, lv_design_mode_t mo
/**
/**
* An extended scrollable design of the page. Calls the normal design function and draws a cursor.
* An extended scrollable design of the page. Calls the normal design function and draws a cursor.
* @param scrl pointer to the scrollabl
a
part of the Text area
* @param scrl pointer to the scrollabl
e
part of the Text area
* @param mask the object will be drawn only in this area
* @param mask the object will be drawn only in this area
* @param mode LV_DESIGN_COVER_CHK: only check if the object fully covers the 'mask_p' area
* @param mode LV_DESIGN_COVER_CHK: only check if the object fully covers the 'mask_p' area
* (return 'true' if yes)
* (return 'true' if yes)
...
...
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