diff options
Diffstat (limited to 'core/fxcrt/fx_coordinates.cpp')
-rw-r--r-- | core/fxcrt/fx_coordinates.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/fxcrt/fx_coordinates.cpp b/core/fxcrt/fx_coordinates.cpp index 752591d3ed..26c9169fd9 100644 --- a/core/fxcrt/fx_coordinates.cpp +++ b/core/fxcrt/fx_coordinates.cpp @@ -184,11 +184,11 @@ bool CFX_FloatRect::Contains(const CFX_FloatRect& other_rect) const { n2.top <= n1.top; } -void CFX_FloatRect::UpdateRect(float x, float y) { - left = std::min(left, x); - bottom = std::min(bottom, y); - right = std::max(right, x); - top = std::max(top, y); +void CFX_FloatRect::UpdateRect(const CFX_PointF& point) { + left = std::min(left, point.x); + bottom = std::min(bottom, point.y); + right = std::max(right, point.x); + top = std::max(top, point.y); } CFX_FloatRect CFX_FloatRect::GetBBox(const CFX_PointF* pPoints, int nPoints) { |