fix clip info event in small size mode.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@343 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
bernard.xiong
2010-01-27 09:40:02 +00:00
parent 5805cbfd33
commit 646db738d5
8 changed files with 15 additions and 10 deletions
+3 -1
View File
@@ -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;