Summary: | Rules incorrectly displayed in various colours rather than black | ||
---|---|---|---|
Product: | MuPDF | Reporter: | James Cloos <cloos> |
Component: | mupdf | Assignee: | Tor Andersson <tor.andersson> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | zeniko |
Priority: | P4 | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Customer: | Word Size: | --- |
Description
James Cloos
2010-05-05 07:05:46 UTC
In case this is the same issue as mine, the following would be the patch: diff -r 27dbba5ea9e6 draw/imagedraw.c --- a/draw/imagedraw.c Sat May 01 14:31:12 2010 +0200 +++ b/draw/imagedraw.c Wed May 05 20:45:21 2010 +0200 @@ -207,9 +207,10 @@ static void img_4o4(FZ_PSRC, FZ_PDST, FZ static void img_w4i1o4(byte *argb, FZ_PSRC, FZ_PDST, FZ_PCTM) { byte alpha = argb[0]; - byte r = argb[4]; - byte g = argb[5]; - byte b = argb[6]; + /* cf. http://bugs.ghostscript.com/show_bug.cgi?id=691281 */ + byte r = argb[1]; + byte g = argb[2]; + byte b = argb[3]; byte cov; byte ca; while (h--) The patch in comment 1 fixes this bug. I’ve not seen any signs of negative side effects, but haven’t tested conclusively. The patch does seem self-evident, though. *** Bug 691276 has been marked as a duplicate of this bug. *** Patch has been applied, thanks for finding the problem! |