From e28cb30dfe6c15b2bba95c5f28cbfffe529ebf32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Lemaire?= Date: Mon, 23 Apr 2012 11:46:35 +0000 Subject: [PATCH] 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 --- lib_paysages/render.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib_paysages/render.c b/lib_paysages/render.c index 13397df..1955403 100644 --- a/lib_paysages/render.c +++ b/lib_paysages/render.c @@ -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; }