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/box.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'components/gui/src/box.c') diff --git a/components/gui/src/box.c b/components/gui/src/box.c index 4de36056a6..0cb6db120f 100644 --- a/components/gui/src/box.c +++ b/components/gui/src/box.c @@ -117,7 +117,7 @@ static void rtgui_box_layout_vertical(struct rtgui_box *box, struct rtgui_rect * rtgui_rect_init(rect, 0, 0, widget->min_width, widget->min_height); /* left in default */ - rtgui_rect_moveto(rect, next_x, next_y); + rtgui_rect_move(rect, next_x, next_y); if (widget->align & RTGUI_ALIGN_EXPAND) { @@ -212,12 +212,12 @@ static void rtgui_box_layout_horizontal(struct rtgui_box *box, struct rtgui_rect rect = &(widget->extent); /* reset rect */ - rtgui_rect_moveto(rect, -rect->x1, -rect->y1); + rtgui_rect_move(rect, -rect->x1, -rect->y1); rect->x2 = widget->min_width; rect->y2 = widget->min_height; /* top in default */ - rtgui_rect_moveto(rect, next_x, next_y); + rtgui_rect_move(rect, next_x, next_y); if (widget->align & RTGUI_ALIGN_EXPAND) { -- cgit v1.3.1