mirror of https://github.com/axmolengine/axmol.git
bug fix
This commit is contained in:
parent
53092b359b
commit
f797dea827
|
@ -163,7 +163,7 @@ Rect ControlUtils::RectUnion(const Rect& src1, const Rect& src2)
|
|||
float x2 = MAX(src1.getMaxX(), src2.getMaxX());
|
||||
float y2 = MAX(src1.getMaxY(), src2.getMaxY());
|
||||
|
||||
result.origin=Point(x1,x2);
|
||||
result.origin=Point(x1,y1);
|
||||
result.size=Size(x2-x1, y2-y1);
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue