mirror of
https://github.com/Kiritow/MiniEngine.git
synced 2024-03-22 13:11:22 +08:00
Fix bug in PosInfo::getArea
This commit is contained in:
parent
f5bb092f79
commit
ed614e9fc6
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user