mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-21 06:53:01 +08:00
fix compiler error with LV_USE_FILESYSTEM = 0
This commit is contained in:
parent
010d7ef72f
commit
0130856ef9
@ -12,6 +12,7 @@
|
|||||||
#include "lv_draw_img.h"
|
#include "lv_draw_img.h"
|
||||||
#include "../lv_misc/lv_math.h"
|
#include "../lv_misc/lv_math.h"
|
||||||
#include "../lv_misc/lv_log.h"
|
#include "../lv_misc/lv_log.h"
|
||||||
|
#include "../lv_misc/lv_mem.h"
|
||||||
|
|
||||||
/*********************
|
/*********************
|
||||||
* DEFINES
|
* DEFINES
|
||||||
|
@ -656,8 +656,9 @@ static lv_res_t lv_img_decoder_built_in_line_alpha(lv_img_decoder_dsc_t * dsc, l
|
|||||||
data_tmp++;
|
data_tmp++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#if LV_USE_FILESYSTEM
|
||||||
lv_draw_buf_release(fs_buf);
|
lv_draw_buf_release(fs_buf);
|
||||||
|
#endif
|
||||||
return LV_RES_OK;
|
return LV_RES_OK;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
@ -753,7 +754,9 @@ static lv_res_t lv_img_decoder_built_in_line_indexed(lv_img_decoder_dsc_t * dsc,
|
|||||||
data_tmp++;
|
data_tmp++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#if LV_USE_FILESYSTEM
|
||||||
lv_draw_buf_release(fs_buf);
|
lv_draw_buf_release(fs_buf);
|
||||||
|
#endif
|
||||||
return LV_RES_OK;
|
return LV_RES_OK;
|
||||||
#else
|
#else
|
||||||
LV_LOG_WARN("Image built-in indexed line reader failed because LV_IMG_CF_INDEXED is 0 in lv_conf.h");
|
LV_LOG_WARN("Image built-in indexed line reader failed because LV_IMG_CF_INDEXED is 0 in lv_conf.h");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user