Author: post
Date: 2009-09-20 23:07:39 +0200 (Sun, 20 Sep 2009)
New Revision: 2636

Modified:
   trunk/plugins/resample/resample.c
Log:
Avoid missing last pixel in vertical resampler.

Modified: trunk/plugins/resample/resample.c
===================================================================
--- trunk/plugins/resample/resample.c   2009-09-20 17:56:12 UTC (rev 2635)
+++ trunk/plugins/resample/resample.c   2009-09-20 21:07:39 UTC (rev 2636)
@@ -339,7 +339,7 @@
        afterVertical = rs_image16_new(input_width, resample->new_height, 
input->channels, input->pixelsize);
 
        // Only even count
-       guint output_x_per_thread = ((input_width + threads + 1) / threads ) & 
0xfffe;
+       guint output_x_per_thread = ((input_width + threads * 2 - 1 ) / threads 
) & 0xfffe;
        guint output_x_offset = 0;
 
        GTimer *gt = g_timer_new();


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to