summaryrefslogtreecommitdiff
path: root/examples/gui
diff options
context:
space:
mode:
authorqiuyiuestc <[email protected]>2010-11-17 16:17:07 +0000
committerqiuyiuestc <[email protected]>2010-11-17 16:17:07 +0000
commitd240423d7422b51e10942fab00a2a34ed4c32e6f (patch)
treed6fae680f474d7494e5d522970aeb36a740502bf /examples/gui
parentb2fb4be8111ae46ca64e4b135cfd47895900a0e1 (diff)
construct module symbol table
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1053 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'examples/gui')
-rw-r--r--examples/gui/demo_view_module.c8
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);
}
/* ɾ�� �ļ��б� ��ͼ */