1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

style opa default value fixes

This commit is contained in:
Gabor Kiss-Vamosi 2020-02-15 11:29:54 +01:00
parent 16df7844e2
commit 75233b6499
2 changed files with 2 additions and 2 deletions

View File

@ -2296,6 +2296,8 @@ lv_opa_t _lv_obj_get_style_opa(const lv_obj_t * obj, uint8_t part, lv_style_prop
prop = prop & (~LV_STYLE_STATE_MASK);
switch(prop) {
case LV_STYLE_BG_OPA:
case LV_STYLE_IMAGE_RECOLOR_OPA:
case LV_STYLE_PATTERN_RECOLOR_OPA:
return LV_OPA_TRANSP;
}

View File

@ -66,8 +66,6 @@ void lv_draw_img_dsc_init(lv_draw_img_dsc_t * dsc)
*/
void lv_draw_img(const lv_area_t * coords, const lv_area_t * mask, const void * src, lv_draw_img_dsc_t * dsc)
{
if(src == NULL) {
LV_LOG_WARN("Image draw: src is NULL");
show_error(coords, mask, "No\ndata");