fix(pxp) change LV_COLOR_TRANSP to LV_COLOR_CHROMA_KEY to v8 compatibility
Fixes #2289
This commit is contained in:
@@ -90,7 +90,7 @@ lv_color_t c = lv_color_mix(c1, c2, ratio);
|
|||||||
```
|
```
|
||||||
|
|
||||||
### Built-in colors
|
### Built-in colors
|
||||||
`lv_color_white()` and `lv_color_black` are return a color with `0xFFFFFF` and `0x000000`.
|
`lv_color_white()` and `lv_color_black()` are return a color with `0xFFFFFF` and `0x000000`.
|
||||||
|
|
||||||
## Opacity
|
## Opacity
|
||||||
To describe opacity the `lv_opa_t` type is created as a wrapper to `uint8_t`. Some defines are also introduced:
|
To describe opacity the `lv_opa_t` type is created as a wrapper to `uint8_t`. Some defines are also introduced:
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ lv_res_t lv_gpu_nxp_pxp_init(lv_nxp_pxp_cfg_t * cfg)
|
|||||||
return LV_RES_INV;
|
return LV_RES_INV;
|
||||||
}
|
}
|
||||||
|
|
||||||
colorKey = lv_color_to32(LV_COLOR_TRANSP);
|
colorKey = lv_color_to32(LV_COLOR_CHROMA_KEY);
|
||||||
|
|
||||||
return LV_RES_OK;
|
return LV_RES_OK;
|
||||||
}
|
}
|
||||||
@@ -299,7 +299,7 @@ void lv_gpu_nxp_pxp_blit(lv_color_t * dest, lv_coord_t dest_width, const lv_colo
|
|||||||
/**
|
/**
|
||||||
* @brief Enable color keying for subsequent calls to lv_gpu_nxp_pxp_blit()
|
* @brief Enable color keying for subsequent calls to lv_gpu_nxp_pxp_blit()
|
||||||
*
|
*
|
||||||
* Color key is defined by LV_COLOR_TRANSP symbol in lv_conf.h
|
* Color key is defined by symbol in lv_conf.h
|
||||||
*/
|
*/
|
||||||
void lv_gpu_nxp_pxp_enable_color_key(void)
|
void lv_gpu_nxp_pxp_enable_color_key(void)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user