diff options
| author | JasonJiaJie <[email protected]> | 2017-12-14 09:12:01 +0800 |
|---|---|---|
| committer | JasonJiaJie <[email protected]> | 2017-12-14 09:12:01 +0800 |
| commit | a2a8e2eee02e30803d813eafdde21a53459c5af9 (patch) | |
| tree | 48c9298e79df107ebbbf532091853c929a3944fd /components/gui/src/widget.c | |
| parent | bd4c90f61948810278b774a4ba1ad3440c7d1460 (diff) | |
| parent | b0f4ae246a7a0d958777e11ad2392f22f20a99e6 (diff) | |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'components/gui/src/widget.c')
| -rw-r--r-- | components/gui/src/widget.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/gui/src/widget.c b/components/gui/src/widget.c index 45919cfd4f..53ef4d4f46 100644 --- a/components/gui/src/widget.c +++ b/components/gui/src/widget.c @@ -218,12 +218,12 @@ void rtgui_widget_set_minheight(rtgui_widget_t *widget, int height) } RTM_EXPORT(rtgui_widget_set_minheight); -static void _widget_moveto(struct rtgui_widget* widget, int dx, int dy) +static void _widget_move(struct rtgui_widget* widget, int dx, int dy) { struct rtgui_list_node *node; rtgui_widget_t *child, *parent; - rtgui_rect_moveto(&(widget->extent), dx, dy); + rtgui_rect_move(&(widget->extent), dx, dy); /* handle visiable extent */ widget->extent_visiable = widget->extent; @@ -243,7 +243,7 @@ static void _widget_moveto(struct rtgui_widget* widget, int dx, int dy) { child = rtgui_list_entry(node, rtgui_widget_t, sibling); - _widget_moveto(child, dx, dy); + _widget_move(child, dx, dy); } } } @@ -280,7 +280,7 @@ void rtgui_widget_move_to_logic(rtgui_widget_t *widget, int dx, int dy) } /* move this widget (and its children if it's a container) to destination point */ - _widget_moveto(widget, dx, dy); + _widget_move(widget, dx, dy); /* update this widget */ rtgui_widget_update_clip(widget); } |
