[gs-cvs] rev 8906 - trunk/gs/src
ray at ghostscript.com
ray at ghostscript.com
Tue Jul 29 13:35:42 PDT 2008
Author: ray
Date: 2008-07-29 13:35:41 -0700 (Tue, 29 Jul 2008)
New Revision: 8906
Modified:
trunk/gs/src/gxclthrd.c
Log:
Fix problem with NumRenderingThreads>0 with devices that request data from
the bottom up such as the 'bmp*' devices. Bug 689985.
Modified: trunk/gs/src/gxclthrd.c
===================================================================
--- trunk/gs/src/gxclthrd.c 2008-07-29 19:34:55 UTC (rev 8905)
+++ trunk/gs/src/gxclthrd.c 2008-07-29 20:35:41 UTC (rev 8906)
@@ -78,7 +78,7 @@
band = 0;
} else {
crdev->thread_lookahead_direction = -1;
- band = band_count;
+ band = band_count - 1;
}
/* Close the files so we can open them in multiple threads */
@@ -415,7 +415,7 @@
/* If we are not at the final band, start up this thread with the next one to do */
next_band = band + (crdev->num_render_threads * crdev->thread_lookahead_direction);
- if (next_band > 0 && next_band < band_count)
+ if (next_band >= 0 && next_band < band_count)
code = clist_start_render_thread(dev, thread_index, next_band);
/* bump the 'curr' to the next thread */
crdev->curr_render_thread = crdev->curr_render_thread == crdev->num_render_threads - 1 ?
More information about the gs-cvs
mailing list