[gs-cvs] rev 8527 - trunk/gs/src
ray at ghostscript.com
ray at ghostscript.com
Sat Feb 16 19:59:45 PST 2008
Author: ray
Date: 2008-02-16 19:59:45 -0800 (Sat, 16 Feb 2008)
New Revision: 8527
Modified:
trunk/gs/src/gxht.c
Log:
Fix for regressions introduced with rev 8526. Some resolutions of CMYK, 1-bit
per component devices that had CMYK colors and Gray colors had strange dithers.
Bug 689706.
DETAILS:
The previous changes missed changing the cache index logic in gx_render_ht_1_level,
If the cache had been set with one of the other routines, gx_render_ht_default or
gx_dc_ht_binary_load_cache, then gx_render_ht_1_level would be inconsistent.
EXPECTED DIFFERNCES:
This is expected to resolve the regressions from rev 8527 with pkmraw on:
035-01.ps
119-28.ps
1_2001.pdf
Altona-Testsuite_p2_S_x3.pdf
Altona_Measure_1v1.pdf
Altona_Visual_bb_1v1_x3.pdf
Altona_Visual_sb_1v1_x3.pdf
BEST8-99-Path.fh7.pdf
BW0696FOLD1FRONT.pdf
Bug687489.ps
Bug687724.pdf
Bug687832.pdf
Bug687840.pdf
Bug688308.ps
Bug688822.eps
Bug689269.ps
Clarke-Tate-Manns-Chinese.ai
H00216q.pdf
Original.pdf
S2_Digitalproof-Forum_x3k.pdf
a.pdf
besttest.pdf
cmyk.pdf
foo.pdf
knight.pdf
test.pdf
time1.pdf
Modified: trunk/gs/src/gxht.c
===================================================================
--- trunk/gs/src/gxht.c 2008-02-14 08:34:56 UTC (rev 8526)
+++ trunk/gs/src/gxht.c 2008-02-17 03:59:45 UTC (rev 8527)
@@ -237,8 +237,13 @@
{
const gx_ht_order *porder = &pcache->order;
int level = porder->levels[b_level];
- gx_ht_tile *bt = &pcache->ht_tiles[level];
+ gx_ht_tile *bt;
+ if (pcache->num_cached < porder->num_levels )
+ bt = &pcache->ht_tiles[level / pcache->levels_per_tile];
+ else
+ bt = &pcache->ht_tiles[b_level]; /* one tile per b_level */
+
if (bt->level != level) {
int code = render_ht(bt, level, porder, pcache->base_id + b_level);
More information about the gs-cvs
mailing list