From ed614e9fc66c7da3e52a577b70873d3e2c51fcbb Mon Sep 17 00:00:00 2001 From: kiritow <1362050620@qq.com> Date: Tue, 25 Apr 2017 10:22:21 +0800 Subject: [PATCH] Fix bug in PosInfo::getArea --- MiniEngine_Widget.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/MiniEngine_Widget.cpp b/MiniEngine_Widget.cpp index 926a629..cd42418 100644 --- a/MiniEngine_Widget.cpp +++ b/MiniEngine_Widget.cpp @@ -8,11 +8,12 @@ namespace Widget Rect PosInfo::getRect(Rect Area) { - Area.x*=x; - Area.y*=y; - Area.w*=w; - Area.h*=h; - return Area; + Rect NewArea; + NewArea.x=Area.x+Area.w*x; + NewArea.y=Area.y+Area.h*y; + NewArea.w=Area.w*w; + NewArea.h=Area.h*h; + return NewArea; }