Improved error message

Former-commit-id: 5d40418cbadf107929c1a359a4415bd9aedf978a
This commit is contained in:
Lynix
2013-08-21 18:47:45 +02:00
parent 1e6fe40707
commit 2bc30f4638

View File

@@ -1124,7 +1124,8 @@ void NzRenderer::SetViewport(const NzRectui& viewport)
unsigned int width = s_target->GetWidth();
if (viewport.x+viewport.width > width || viewport.y+viewport.height > height)
{
NazaraError("Rectangle dimensions are out of bounds");
NazaraError("Rectangle dimensions are out of bounds (" + NzString::Number(viewport.x+viewport.width) + ", " + NzString::Number(viewport.y+viewport.height) + " > "
+ NzString::Number(width) + ", " + NzString::Number(height) + ")");
return;
}
#endif