diff options
| author | yangfasheng <[email protected]> | 2017-12-12 19:46:38 +0800 |
|---|---|---|
| committer | yangfasheng <[email protected]> | 2017-12-12 19:46:38 +0800 |
| commit | 2d98c0e7be8e0803de4b4e8e9ba03635bcef91c8 (patch) | |
| tree | 2369b56b2cb936de281b8e8b335da94828298af3 /components/gui/src/topwin.c | |
| parent | 44e17aa2772a48697604ba1122da4a0bb9015414 (diff) | |
gui 引擎代码更新;
Diffstat (limited to 'components/gui/src/topwin.c')
| -rw-r--r-- | components/gui/src/topwin.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/gui/src/topwin.c b/components/gui/src/topwin.c index df605c342d..fe379be60b 100644 --- a/components/gui/src/topwin.c +++ b/components/gui/src/topwin.c @@ -764,7 +764,7 @@ rt_err_t rtgui_topwin_move(struct rtgui_event_win_move *event) old_rect = topwin->extent; /* move window rect */ - rtgui_rect_moveto(&(topwin->extent), dx, dy); + rtgui_rect_move(&(topwin->extent), dx, dy); /* move the monitor rect list */ rtgui_list_foreach(node, &(topwin->monitor_list)) @@ -772,7 +772,7 @@ rt_err_t rtgui_topwin_move(struct rtgui_event_win_move *event) struct rtgui_mouse_monitor *monitor = rtgui_list_entry(node, struct rtgui_mouse_monitor, list); - rtgui_rect_moveto(&(monitor->rect), dx, dy); + rtgui_rect_move(&(monitor->rect), dx, dy); } /* update windows clip info */ @@ -790,6 +790,7 @@ rt_err_t rtgui_topwin_move(struct rtgui_event_win_move *event) struct rtgui_event_paint epaint; RTGUI_EVENT_PAINT_INIT(&epaint); epaint.wid = topwin->wid; + rtgui_send(topwin->app, &(epaint.parent), sizeof(epaint)); } |
