mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-28 13:36:27 +08:00
fix(bmp) fix typo in BPP condition
Thanks @egonbeermat
This commit is contained in:
@@ -152,7 +152,7 @@ static lv_res_t decoder_open(lv_img_decoder_t * decoder, lv_img_decoder_dsc_t *
|
|||||||
b.row_size_bytes = ((b.bpp * b.px_width + 31) / 32) * 4;
|
b.row_size_bytes = ((b.bpp * b.px_width + 31) / 32) * 4;
|
||||||
|
|
||||||
bool color_depth_error = false;
|
bool color_depth_error = false;
|
||||||
if(LV_COLOR_DEPTH == 32 && (b.bpp != 32 || b.bpp != 24)) {
|
if(LV_COLOR_DEPTH == 32 && (b.bpp != 32 && b.bpp != 24)) {
|
||||||
LV_LOG_WARN("LV_COLOR_DEPTH == 32 but bpp is %d (should be 32 or 24)", b.bpp);
|
LV_LOG_WARN("LV_COLOR_DEPTH == 32 but bpp is %d (should be 32 or 24)", b.bpp);
|
||||||
color_depth_error = true;
|
color_depth_error = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user