Commit Graph

17 Commits

Author SHA1 Message Date
Zoltan Janosy
48caa8d772 feat(draw_sw): implemented radial gradient background (#6170)
Co-authored-by: Zoltan Janosy <zjanosy@fishman.com>
Co-authored-by: Liam <30486941+liamHowatt@users.noreply.github.com>
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2024-05-26 17:17:16 +02:00
Xu Xingliang
79b64c8bd8 fix(draw_buf): use LV_ROUND_UP to align draw buffer address
From test config lv_test_conf.h:

/*Use non power of 2 to avoid the case when `malloc` returns aligned pointer by default, and use a large value be sure any issues will cause crash*/
\#define LV_DRAW_BUF_ALIGN                       852

We need to support non-power-of-2 draw buffer alignement.
Introduce LV_ROUND_UP in lv_math.h and use it instead.

Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
2024-04-25 18:56:18 +08:00
Michael Simon
352420cd54 refacter(conf): use defines for standard includes (#5767)
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
Co-authored-by: Neo Xu <neo.xu1990@gmail.com>
2024-03-20 12:10:33 +08:00
Karl Andersson
e3b747f044 fix: removed LV_ATTRIBUTE_FAST_MEM function attribute from prototypes (#5467) 2024-01-25 09:40:40 +01:00
Neo Xu
deb43a2333 feat(math): add LV_ALIGN_UP macro (#5053)
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
2023-12-20 10:07:27 +01:00
Benign X
492a474f5f feat(lv_math): add lv_rand_set_seed api (#5013) 2023-12-14 14:22:54 +01:00
Neo Xu
3fbdd7b6c1 fix(anim): fix compile warnings (#4305)
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
2023-06-23 20:32:25 +02:00
Neo Xu
602005a968 fix(math): SIN_MAX now should be 32768 after #4285 (#4306)
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
2023-06-23 10:42:56 +02:00
Xu Xingliang
42606eb9f1 math: remove lv_bezier3
Should use lv_cubic_bezier from now on. A macro lv_bezier3 is proviced for backward compatibility but u0, u3 is limited to 0, 1024.

Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
2023-06-20 11:27:09 +02:00
Neo Xu
043c48761f chore(math): tune cubic-bezier precison to 10bits
10 bits is already enough for normally used ease functions(ease, ease-in, ease-out, ease-in-out).
14 bits provides more accuracy and requires additional shift operation.
>14bits provices more accuracy but requires 64bit calculation and additional shift operation.

Add normally used ease function in test.

Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
2023-06-20 11:27:09 +02:00
Neo Xu
62ec011585 feat(math): add cubic-bezier function
Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
2023-06-20 11:27:09 +02:00
Benign X
caf9d16dc9 fix(pos): fix invalidate area problem with transform (#4285)
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2023-06-13 21:16:22 +02:00
Kevin Schlosser
e485dd8bb4 feat(docs): migrate from .md to .rst (#4129) 2023-04-27 14:42:02 +02:00
Xiang Xiao
dfb036e42c fix(misc): correct the comment and code style (#2769)
and remove the redundant inclusion

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-11-08 11:28:52 +01:00
Xiang Xiao
a4978d0913 fix(color): minor fixes(#2767)
* fix(color): move LV_UDIV255 to lv_math.h

since lv_math.h is better place for the computation function

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>

* fix(color): replace the inifite loop with LV_ASSERT

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-08 10:54:13 +01:00
Xiang Xiao
9254a7ea14 fix(comment): remove the space after /* and before */ 2021-03-18 11:51:36 +08:00
Gabor Kiss-Vamosi
0cc1e99ddf remove the lv_ prefix from the directories in the src folder 2021-03-16 20:36:27 +01:00