Fix bug in PosInfo::getArea

This commit is contained in:
Kirigaya Kazuto 2017-04-25 10:22:21 +08:00
parent f5bb092f79
commit ed614e9fc6

View File

@ -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;
}