- fixed compile on windows

This commit is contained in:
Mark Vejvoda 2012-10-24 01:09:53 +00:00
parent 92de14ac98
commit 6d2afae784
1 changed files with 7 additions and 0 deletions

View File

@ -186,10 +186,17 @@ public:
Rect2<T> 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<T> &pt) const{