fix(color): add cast to LV_OPA_MIX macros (#7956)

This commit is contained in:
Paul Vogel
2025-03-25 13:27:02 +01:00
committed by GitHub
parent b7061642a0
commit a210dd37e8
+2 -2
View File
@@ -230,8 +230,8 @@ typedef enum {
#define LV_COLOR_MAKE(r8, g8, b8) {b8, g8, r8}
#define LV_OPA_MIX2(a1, a2) (((int32_t)(a1) * (a2)) >> 8)
#define LV_OPA_MIX3(a1, a2, a3) (((int32_t)(a1) * (a2) * (a3)) >> 16)
#define LV_OPA_MIX2(a1, a2) ((lv_opa_t)(((int32_t)(a1) * (a2)) >> 8))
#define LV_OPA_MIX3(a1, a2, a3) ((lv_opa_t)(((int32_t)(a1) * (a2) * (a3)) >> 16))
/**********************
* GLOBAL PROTOTYPES