diff options
| author | bernard.xiong <[email protected]> | 2010-01-27 09:40:02 +0000 |
|---|---|---|
| committer | bernard.xiong <[email protected]> | 2010-01-27 09:40:02 +0000 |
| commit | 646db738d5f2a5201f41a04e850144329e855fac (patch) | |
| tree | a67d375d8faa1d4975369cb2f3320162730ff164 /rtgui/server | |
| parent | 5805cbfd3324c3722a1b46d08a89473bbc9a7bb5 (diff) | |
fix clip info event in small size mode.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@343 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'rtgui/server')
| -rw-r--r-- | rtgui/server/topwin.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rtgui/server/topwin.c b/rtgui/server/topwin.c index f987880132..dc0fd1480b 100644 --- a/rtgui/server/topwin.c +++ b/rtgui/server/topwin.c @@ -75,7 +75,6 @@ rt_err_t rtgui_topwin_add(struct rtgui_event_win_create* event) topwin->wid = event->wid; topwin->extent = event->extent; topwin->tid = event->parent.sender; - topwin->mask = event->mask; topwin->flag = 0; if (event->flag & RTGUI_WIN_STYLE_NO_TITLE) topwin->flag |= WINTITLE_NO; @@ -279,6 +278,7 @@ void rtgui_topwin_raise(struct rtgui_win* wid, rt_thread_t sender) rt_int32_t count; struct rtgui_list_node* node; struct rtgui_event_clip_info eclip; + RTGUI_EVENT_CLIP_INFO_INIT(&eclip); /* the window is already placed in front */ if (&(topwin->list) == _rtgui_topwin_show_list.next) @@ -741,6 +741,8 @@ static void rtgui_topwin_update_clip() struct rtgui_event_clip_info eclip; struct rtgui_list_node* node = _rtgui_topwin_show_list.next; + RTGUI_EVENT_CLIP_INFO_INIT(&eclip); + rtgui_list_foreach(node, &_rtgui_topwin_show_list) { struct rtgui_topwin* wnd; |
