summaryrefslogtreecommitdiff
path: root/components/rtgui/server
diff options
context:
space:
mode:
author[email protected] <[email protected]>2010-12-28 00:06:05 +0000
committer[email protected] <[email protected]>2010-12-28 00:06:05 +0000
commit97cc2b9e4cdc80b883827f6f6326c93c7caf87ca (patch)
treea68ae48e5d5dc73ed99d56b023acc9557f108051 /components/rtgui/server
parent04727cb1db71547ffef44a7897ea9a71e3fb2330 (diff)
update notebook control; fix rtgui_widget_hide issue.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1226 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/rtgui/server')
-rw-r--r--components/rtgui/server/topwin.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/rtgui/server/topwin.c b/components/rtgui/server/topwin.c
index 171e9396a8..b1c9749d18 100644
--- a/components/rtgui/server/topwin.c
+++ b/components/rtgui/server/topwin.c
@@ -281,6 +281,7 @@ void rtgui_topwin_raise(struct rtgui_win* wid, rt_thread_t sender)
struct rtgui_list_node* node;
struct rtgui_event_clip_info eclip;
RTGUI_EVENT_CLIP_INFO_INIT(&eclip);
+ eclip.wid = RT_NULL;
/* the window is already placed in front */
if (&(topwin->list) == _rtgui_topwin_show_list.next)
@@ -879,6 +880,7 @@ static void rtgui_topwin_redraw(struct rtgui_rect* rect)
struct rtgui_list_node* node;
struct rtgui_event_paint epaint;
RTGUI_EVENT_PAINT_INIT(&epaint);
+ epaint.wid = RT_NULL;
rtgui_list_foreach(node, &_rtgui_topwin_show_list)
{