paysages : Fix for render sizes not multiple of 10.

git-svn-id: https://subversion.assembla.com/svn/thunderk/paysages@304 b1fd45b6-86a6-48da-8261-f70d1f35bdcc
This commit is contained in:
Michaël Lemaire 2012-04-23 11:46:35 +00:00 committed by ThunderK
parent e56489062a
commit e28cb30dfe

View file

@ -701,7 +701,7 @@ void renderPostProcess(RenderArea* area, Renderer* renderer, int nbchunks)
chunks[i].finished = 0;
chunks[i].interrupt = 0;
chunks[i].startx = x * dx;
if (x == nx)
if (x == nx - 1)
{
chunks[i].endx = area->width - 1;
}
@ -710,7 +710,7 @@ void renderPostProcess(RenderArea* area, Renderer* renderer, int nbchunks)
chunks[i].endx = (x + 1) * dx - 1;
}
chunks[i].starty = y * dy;
if (y == ny)
if (y == ny - 1)
{
chunks[i].endy = area->height - 1;
}