Summary: | Clipped glyphs on display when TextAlphaBits = 2 or 4 | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | SaGS <sags5495> |
Component: | Color | Assignee: | Chris Liddell (chrisl) <chris.liddell> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | henry.stiles, henrystiles |
Priority: | P4 | ||
Version: | master | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Customer: | Word Size: | --- | |
Attachments: |
Simple sample file.
Screenshots. Suggested patch. |
Description
SaGS
2010-07-24 12:52:52 UTC
Created attachment 6537 [details]
Simple sample file.
Created attachment 6538 [details]
Screenshots.
Command line used:
gswin32c -r96 -dTextAlphaBits=n "Bug999088-[clipalpha]-sample.ps"
with ‘n’ = 1, 2, 4. ‘n’ = 1 is OK, the other two are KO.
Created attachment 6539 [details] Suggested patch. Fix: When outputting a scanline, the default copy_alpha() was passing the byte width as appropriate for the source bitmap, not for the modified scanline. While they have the same width in pixels, their width in bytes may differ because of different colour depths. Bug 691494. Note: My tests were not extensive. In comment #2 substitute ‘Bug691494’ for ‘Bug999088’, sorry. I concur with SaGS analysis, patch committed in r11570. Thanks for the effort! Note: revision 11572 reinstated (by mistake, I guess) the incorrect code <http://svn.ghostscript.com/viewvc/trunk/gs/base/gdevdbit.c?r1=11572&r2=11571&pathrev=11572>; the fix needs to be committed again. (In reply to comment #6) > Note: revision 11572 reinstated (by mistake, I guess) the incorrect code > <http://svn.ghostscript.com/viewvc/trunk/gs/base/gdevdbit.c?r1=11572&r2=11571&pathrev=11572>; > the fix needs to be committed again. Right in our regression testing system once a build breaks we revert back to the breaking revision - 1 and all later commits have to be resubmitted. Chris will recommit when he returns. Sorry for the inconvenience. Reopen until the fix can be resubmitted. Patch reapplied as r11581. |