mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-21 05:51:45 +08:00
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
@@ -960,7 +960,7 @@ vg_lite_color_t lv_vg_lite_color(lv_color_t color, lv_opa_t opa, bool pre_mul)
|
||||
|
||||
vg_lite_blend_t lv_vg_lite_blend_mode(lv_blend_mode_t blend_mode, bool has_pre_mul)
|
||||
{
|
||||
if(!has_pre_mul && vg_lite_query_feature(gcFEATURE_BIT_VG_LVGL_SUPPORT)) {
|
||||
if(!has_pre_mul && lv_vg_lite_support_blend_normal()) {
|
||||
switch(blend_mode) {
|
||||
case LV_BLEND_MODE_NORMAL: /**< Simply mix according to the opacity value*/
|
||||
return VG_LITE_BLEND_NORMAL_LVGL;
|
||||
@@ -981,9 +981,6 @@ vg_lite_blend_t lv_vg_lite_blend_mode(lv_blend_mode_t blend_mode, bool has_pre_m
|
||||
|
||||
switch(blend_mode) {
|
||||
case LV_BLEND_MODE_NORMAL: /**< Simply mix according to the opacity value*/
|
||||
if(!has_pre_mul && vg_lite_query_feature(gcFEATURE_BIT_VG_HW_PREMULTIPLY)) {
|
||||
return VG_LITE_BLEND_PREMULTIPLY_SRC_OVER;
|
||||
}
|
||||
return VG_LITE_BLEND_SRC_OVER;
|
||||
|
||||
case LV_BLEND_MODE_ADDITIVE: /**< Add the respective color channels*/
|
||||
@@ -1169,15 +1166,7 @@ bool lv_vg_lite_matrix_check(const vg_lite_matrix_t * matrix)
|
||||
|
||||
bool lv_vg_lite_support_blend_normal(void)
|
||||
{
|
||||
if(vg_lite_query_feature(gcFEATURE_BIT_VG_HW_PREMULTIPLY)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if(vg_lite_query_feature(gcFEATURE_BIT_VG_LVGL_SUPPORT)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
return vg_lite_query_feature(gcFEATURE_BIT_VG_LVGL_SUPPORT);
|
||||
}
|
||||
|
||||
bool lv_vg_lite_16px_align(void)
|
||||
|
||||
Reference in New Issue
Block a user