From 2d98c0e7be8e0803de4b4e8e9ba03635bcef91c8 Mon Sep 17 00:00:00 2001 From: yangfasheng Date: Tue, 12 Dec 2017 19:46:38 +0800 Subject: gui 引擎代码更新; MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/gui/src/topwin.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'components/gui/src/topwin.c') 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)); } -- cgit v1.3.1