diff options
Diffstat (limited to 'examples/gui')
| -rw-r--r-- | examples/gui/demo_view_module.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/examples/gui/demo_view_module.c b/examples/gui/demo_view_module.c index 7623f8fab8..56544bdc25 100644 --- a/examples/gui/demo_view_module.c +++ b/examples/gui/demo_view_module.c @@ -39,15 +39,11 @@ static void open_btn_onbutton(rtgui_widget_t* widget, struct rtgui_event* event) rt_memset(name, 0, sizeof(name));
- /* ���ͼ������� */
+ /* ���Ӧ��ģ������� */
if (rt_strstr(path, ".mo") != RT_NULL || rt_strstr(path, ".so") != RT_NULL)
{
- rt_memcpy(name, "mod", 4);
+ rt_module_open(path);
}
-
- /* ���ͼ���ļ���Ч��������Ӧ��rtgui_image���� */
- if (name[0] != '\0')
- rt_module_load_from_file(name, path);
}
/* ɾ�� �ļ��б� ��ͼ */
|
