refact(layer): use draw_buf to replace raw pointers (#5254)
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com> Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com> Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com> Co-authored-by: Xu Xingliang <xuxingliang@xiaomi.com>
This commit is contained in:
@@ -416,10 +416,5 @@ static uint32_t _calculate_draw_buf_size(uint32_t w, uint32_t h, lv_color_format
|
||||
size += LV_COLOR_INDEXED_PALETTE_SIZE(cf) * 4;
|
||||
}
|
||||
|
||||
/*RLE decompression operates on pixel unit, thus add padding to make sure memory is enough*/
|
||||
uint8_t bpp = lv_color_format_get_bpp(cf);
|
||||
bpp = (bpp + 7) >> 3;
|
||||
size += bpp;
|
||||
|
||||
return size;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user