1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

fix(decoder): if draw unit supports indexed image, don't add to cache (#5438)

Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
This commit is contained in:
Neo Xu 2024-01-24 10:40:08 +08:00 committed by GitHub
parent 8d19189422
commit f24d09b78a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -262,6 +262,7 @@ lv_result_t lv_bin_decoder_open(lv_image_decoder_t * decoder, lv_image_decoder_d
if(dsc->args.use_indexed) {
/*Palette for indexed image and whole image of A8 image are always loaded to RAM for simplicity*/
res = load_indexed(decoder, dsc);
use_directly = true; /*If draw unit supports indexed image, it can be used directly.*/
}
else {
res = decode_indexed(decoder, dsc);