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:
parent
e56489062a
commit
e28cb30dfe
1 changed files with 2 additions and 2 deletions
|
@ -701,7 +701,7 @@ void renderPostProcess(RenderArea* area, Renderer* renderer, int nbchunks)
|
||||||
chunks[i].finished = 0;
|
chunks[i].finished = 0;
|
||||||
chunks[i].interrupt = 0;
|
chunks[i].interrupt = 0;
|
||||||
chunks[i].startx = x * dx;
|
chunks[i].startx = x * dx;
|
||||||
if (x == nx)
|
if (x == nx - 1)
|
||||||
{
|
{
|
||||||
chunks[i].endx = area->width - 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].endx = (x + 1) * dx - 1;
|
||||||
}
|
}
|
||||||
chunks[i].starty = y * dy;
|
chunks[i].starty = y * dy;
|
||||||
if (y == ny)
|
if (y == ny - 1)
|
||||||
{
|
{
|
||||||
chunks[i].endy = area->height - 1;
|
chunks[i].endy = area->height - 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue