From 6d2afae784221b1a6c1f373f45346568a712d8ee Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Wed, 24 Oct 2012 01:09:53 +0000 Subject: [PATCH] - fixed compile on windows --- source/shared_lib/include/graphics/math_util.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/shared_lib/include/graphics/math_util.h b/source/shared_lib/include/graphics/math_util.h index 7b064dd8..6ca74d90 100644 --- a/source/shared_lib/include/graphics/math_util.h +++ b/source/shared_lib/include/graphics/math_util.h @@ -186,10 +186,17 @@ public: Rect2 computeBoundingRect() const{ return Rect2i( +#ifdef WIN32 + 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)); +#else 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)); +#endif } bool isInside(const Vec2 &pt) const{