- fixed on windows platform

This commit is contained in:
Mark Vejvoda 2012-05-01 15:21:09 +00:00
parent a70b1a9881
commit 20ffdbcf2d
1 changed files with 6 additions and 4 deletions

View File

@ -16,6 +16,8 @@
#include "vec.h"
#include "leak_dumper.h"
using namespace std;
namespace Shared{ namespace Graphics{
const float pi= 3.1415926f;
@ -184,10 +186,10 @@ public:
Rect2<T> computeBoundingRect() const{
return Rect2i(
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));
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));
}
bool isInside(const Vec2<T> &pt) const{