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
dbe7ef7a
Commit
dbe7ef7a
authored
Feb 26, 2018
by
Gabor Kiss-Vamosi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lv_color.h fix uninitialized alpha chanel with 24 bit color
parent
f0a70559
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
lv_color.h
lv_misc/lv_color.h
+4
-0
No files found.
lv_misc/lv_color.h
View file @
dbe7ef7a
...
...
@@ -248,6 +248,10 @@ static inline lv_color_t lv_color_mix(lv_color_t c1, lv_color_t c2, uint8_t mix)
ret
.
red
=
(
uint16_t
)((
uint16_t
)
c1
.
red
*
mix
+
(
c2
.
red
*
(
255
-
mix
)))
>>
8
;
ret
.
green
=
(
uint16_t
)((
uint16_t
)
c1
.
green
*
mix
+
(
c2
.
green
*
(
255
-
mix
)))
>>
8
;
ret
.
blue
=
(
uint16_t
)((
uint16_t
)
c1
.
blue
*
mix
+
(
c2
.
blue
*
(
255
-
mix
)))
>>
8
;
#if LV_COLOR_DEPTH == 24
ret
.
alpha
=
0xFF
;
#endif
return
ret
;
}
...
...
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