mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 03:09:16 +08:00
add embedded hdc image support
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@184 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
@@ -115,7 +115,7 @@ struct rtgui_image* rtgui_image_create_from_file(const char* type, const char* f
|
||||
return image;
|
||||
}
|
||||
|
||||
struct rtgui_image* rtgui_image_create_from_mem(const char* type, const rt_uint8_t* data, rt_size_t length)
|
||||
struct rtgui_image* rtgui_image_create_from_mem(const char* type, const rt_uint8_t* data, rt_size_t length, rt_bool_t load)
|
||||
{
|
||||
struct rtgui_filerw* filerw;
|
||||
struct rtgui_image_engine* engine;
|
||||
@@ -144,7 +144,7 @@ struct rtgui_image* rtgui_image_create_from_mem(const char* type, const rt_uint8
|
||||
return RT_NULL;
|
||||
}
|
||||
|
||||
if (engine->image_load(image, filerw, RT_TRUE) != RT_TRUE)
|
||||
if (engine->image_load(image, filerw, load) != RT_TRUE)
|
||||
{
|
||||
/* close filerw context */
|
||||
rtgui_filerw_close(filerw);
|
||||
|
||||
Reference in New Issue
Block a user