diff options
Diffstat (limited to 'components/rtgui/common')
| -rw-r--r-- | components/rtgui/common/image.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/rtgui/common/image.c b/components/rtgui/common/image.c index 85fc6485f9..7393856300 100644 --- a/components/rtgui/common/image.c +++ b/components/rtgui/common/image.c @@ -68,6 +68,7 @@ static struct rtgui_image_engine* rtgui_image_get_engine(const char* type) return RT_NULL; } +#if defined(RTGUI_USING_DFS_FILERW) || defined(RTGUI_USING_STDIO_FILERW) struct rtgui_image* rtgui_image_create_from_file(const char* type, const char* filename, rt_bool_t load) { struct rtgui_filerw* filerw; @@ -114,6 +115,7 @@ struct rtgui_image* rtgui_image_create_from_file(const char* type, const char* f return image; } +#endif struct rtgui_image* rtgui_image_create_from_mem(const char* type, const rt_uint8_t* data, rt_size_t length, rt_bool_t load) { |
