[gimp] app: more correct code in gimp_projection_chunk_render_iteration()



commit f2b265f75131143079471d6c8c3037b9ae5a5ae7
Author: Michael Natterer <mitch gimp org>
Date:   Mon Jun 30 23:12:53 2014 +0200

    app: more correct code in gimp_projection_chunk_render_iteration()
    
    wasn't broken before, just too obscure.

 app/core/gimpprojection.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/core/gimpprojection.c b/app/core/gimpprojection.c
index de481e1..847cf85 100644
--- a/app/core/gimpprojection.c
+++ b/app/core/gimpprojection.c
@@ -829,13 +829,13 @@ gimp_projection_chunk_render_iteration (GimpProjection *proj)
   gimp_projection_paint_area (proj, TRUE /* sic! */,
                               work_x, work_y, work_w, work_h);
 
-  chunk_render->work_x += GIMP_PROJECTION_CHUNK_WIDTH;
+  chunk_render->work_x += work_w;
 
   if (chunk_render->work_x >= chunk_render->x + chunk_render->width)
     {
       chunk_render->work_x = chunk_render->x;
 
-      chunk_render->work_y += GIMP_PROJECTION_CHUNK_HEIGHT;
+      chunk_render->work_y += work_h;
 
       if (chunk_render->work_y >= chunk_render->y + chunk_render->height)
         {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]