diff options
| author | bernard.xiong <[email protected]> | 2010-01-15 00:06:27 +0000 |
|---|---|---|
| committer | bernard.xiong <[email protected]> | 2010-01-15 00:06:27 +0000 |
| commit | 676602f89dce7218e3f16ccfba05c79468dc2bdd (patch) | |
| tree | 116b90544cc1dd0bcb2c3e183d3a5b77d7c4806a /rtgui/widgets | |
| parent | a8e372657ea0e92554e640389584b0df292a13f8 (diff) | |
reduce the size of clip_info event.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@306 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'rtgui/widgets')
| -rw-r--r-- | rtgui/widgets/toplevel.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/rtgui/widgets/toplevel.c b/rtgui/widgets/toplevel.c index 953ee506c5..96285e6005 100644 --- a/rtgui/widgets/toplevel.c +++ b/rtgui/widgets/toplevel.c @@ -116,7 +116,7 @@ rt_bool_t rtgui_toplevel_event_handler(rtgui_widget_t* widget, rtgui_event_t* ev } void rtgui_toplevel_handle_clip(struct rtgui_toplevel* top, - struct rtgui_event_clip_info* info) + struct rtgui_event_clip_info* info) { RT_ASSERT(top != RT_NULL); RT_ASSERT(info != RT_NULL); @@ -136,8 +136,13 @@ void rtgui_toplevel_handle_clip(struct rtgui_toplevel* top, info->num_rect); top->external_clip_size = info->num_rect; +#ifdef RTGUI_USING_SMALL_SIZE + /* get rect list from topwin list */ + rtgui_topwin_get_clipinfo(top->external_clip_rect, top->external_clip_size); +#else /* copy rect array */ rt_memcpy(top->external_clip_rect, (void*)(info + 1), sizeof(rtgui_rect_t) * info->num_rect); +#endif } #include <rtgui/driver.h> /* to get screen rect */ |
