diff options
Diffstat (limited to 'ui/gfx/point_f.h')
-rw-r--r-- | ui/gfx/point_f.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ui/gfx/point_f.h b/ui/gfx/point_f.h index 3e69bd7..46bd8e2 100644 --- a/ui/gfx/point_f.h +++ b/ui/gfx/point_f.h @@ -41,11 +41,15 @@ inline bool operator!=(const PointF& lhs, const PointF& rhs) { } inline PointF operator+(const PointF& lhs, const Vector2dF& rhs) { - return lhs.Add(rhs); + PointF result(lhs); + result += rhs; + return result; } inline PointF operator-(const PointF& lhs, const Vector2dF& rhs) { - return lhs.Subtract(rhs); + PointF result(lhs); + result -= rhs; + return result; } inline Vector2dF operator-(const PointF& lhs, const PointF& rhs) { |