Fix some warnings
This commit is contained in:
@@ -574,7 +574,6 @@ static void map_normal(const lv_area_t * disp_area, lv_color_t * disp_buf, cons
|
||||
|
||||
/*Buffer the result color to avoid recalculating the same color*/
|
||||
lv_color_t res_color;
|
||||
lv_opa_t last_mask = LV_OPA_TRANSP;
|
||||
res_color.full = disp_buf_tmp[0].full;
|
||||
|
||||
/*Only the mask matters*/
|
||||
|
||||
@@ -547,9 +547,9 @@ static inline bool transform_anti_alias(lv_img_transform_dsc_t * dsc)
|
||||
lv_color_t c11;
|
||||
|
||||
lv_opa_t a00 = dsc->res.opa;
|
||||
lv_opa_t a10;
|
||||
lv_opa_t a01;
|
||||
lv_opa_t a11;
|
||||
lv_opa_t a10 = 0;
|
||||
lv_opa_t a01 = 0;
|
||||
lv_opa_t a11 = 0;
|
||||
|
||||
if(dsc->tmp.native_color) {
|
||||
memcpy(&c01, &src_u8[dsc->tmp.pxi + dsc->tmp.px_size * xn], sizeof(lv_color_t));
|
||||
|
||||
@@ -128,7 +128,7 @@ void lv_img_set_zoom(lv_obj_t * img, uint16_t zoom);
|
||||
* @param img pointer to an image object
|
||||
* @param antialias true: anti-aliased; false: not anti-aliased
|
||||
*/
|
||||
void lv_img_set_antialais(lv_obj_t * img, bool antialias);
|
||||
void lv_img_set_antialias(lv_obj_t * img, bool antialias);
|
||||
|
||||
/**
|
||||
* Set the style of an image
|
||||
@@ -200,7 +200,7 @@ uint16_t lv_img_get_zoom(lv_obj_t * img);
|
||||
* @param img pointer to an image object
|
||||
* @return true: anti-aliased; false: not anti-aliased
|
||||
*/
|
||||
bool lv_img_get_antialais(lv_obj_t * img);
|
||||
bool lv_img_get_antialias(lv_obj_t * img);
|
||||
|
||||
/**
|
||||
* Get the style of an image object
|
||||
|
||||
@@ -76,9 +76,9 @@ lv_obj_t * lv_objmask_create(lv_obj_t * par, const lv_obj_t * copy)
|
||||
lv_objmask_set_style(new_objmask, LV_OBJMASK_STYLE_BG, &lv_style_transp);
|
||||
|
||||
}
|
||||
/*Copy an existing object mask*/
|
||||
/*TODO: Copy an existing object mask*/
|
||||
else {
|
||||
lv_objmask_ext_t * copy_ext = lv_obj_get_ext_attr(copy);
|
||||
/* lv_objmask_ext_t * copy_ext = lv_obj_get_ext_attr(copy); */
|
||||
|
||||
/*Refresh the style with new signal function*/
|
||||
lv_obj_refresh_style(new_objmask);
|
||||
|
||||
Reference in New Issue
Block a user