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) Rect PosInfo::getRect(Rect Area)
{ {
Area.x*=x; Rect NewArea;
Area.y*=y; NewArea.x=Area.x+Area.w*x;
Area.w*=w; NewArea.y=Area.y+Area.h*y;
Area.h*=h; NewArea.w=Area.w*w;
return Area; NewArea.h=Area.h*h;
return NewArea;
} }