duDebugDraw::polyToCol changed to areaToCol (#255)

This commit is contained in:
Domenico Albani
2017-02-01 17:44:39 +01:00
committed by Jakob Botsch Nielsen
parent ad6e5de2e9
commit 16a7a30ada
4 changed files with 23 additions and 22 deletions

View File

@@ -28,16 +28,16 @@ duDebugDraw::~duDebugDraw()
// Empty
}
unsigned int duDebugDraw::polyToCol(const struct dtPoly* poly)
unsigned int duDebugDraw::areaToCol(unsigned int area)
{
if (poly->getArea() == 0)
if (area == 0)
{
// Treat zero area type as default.
return duRGBA(0, 192, 255, 255);
}
else
{
return duIntToCol(poly->getArea(), 255);
return duIntToCol(area, 255);
}
}