From 92de14ac980fc1b2e404606af70120786f209d5a Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Wed, 24 Oct 2012 00:26:12 +0000 Subject: [PATCH] - applied a patch from debian gcc 4.7 --- source/shared_lib/include/graphics/math_util.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/shared_lib/include/graphics/math_util.h b/source/shared_lib/include/graphics/math_util.h index 2acf299f..7b064dd8 100644 --- a/source/shared_lib/include/graphics/math_util.h +++ b/source/shared_lib/include/graphics/math_util.h @@ -186,10 +186,10 @@ public: Rect2 computeBoundingRect() const{ return Rect2i( - min(p[0].x, p[1].x), - min(p[0].y, p[2].y), - max(p[2].x, p[3].x), - max(p[1].y, p[3].y)); + std::min(p[0].x, p[1].x), + std::min(p[0].y, p[2].y), + std::max(p[2].x, p[3].x), + std::max(p[1].y, p[3].y)); } bool isInside(const Vec2 &pt) const{