Instead of copying the address, just copy the color data.
Initially found by naddy grepping for suspicious casts. Bug and patch approved upstream.
This commit is contained in:
parent
73dea6672f
commit
0983b83248
@ -1,10 +1,10 @@
|
||||
# $OpenBSD: Makefile,v 1.56 2008/05/09 19:29:44 kili Exp $
|
||||
# $OpenBSD: Makefile,v 1.57 2008/07/12 19:11:56 kili Exp $
|
||||
|
||||
COMMENT= GNU PostScript interpreter
|
||||
|
||||
VERSION= 8.62
|
||||
DISTNAME= ghostscript-${VERSION}
|
||||
PKGNAME= ${DISTNAME}p1
|
||||
PKGNAME= ${DISTNAME}p2
|
||||
CATEGORIES= print lang
|
||||
SHARED_LIBS= gs 11.0
|
||||
|
||||
|
12
print/ghostscript/gnu/patches/patch-src_gdevwts_c
Normal file
12
print/ghostscript/gnu/patches/patch-src_gdevwts_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_gdevwts_c,v 1.1 2008/07/12 19:11:56 kili Exp $
|
||||
--- src/gdevwts.c.orig Mon Feb 18 21:28:59 2008
|
||||
+++ src/gdevwts.c Wed Jul 2 23:05:24 2008
|
||||
@@ -935,7 +935,7 @@ wtsimdi_contone_get_bits_rectangle(gx_device * dev, co
|
||||
r_last = r, g_last = g, b_last = b;
|
||||
wtsimdi_resolve_one(idev, color);
|
||||
}
|
||||
- *cmyk_data++ = (uint32_t)idev->current_color.cmyk;
|
||||
+ *cmyk_data++ = *((uint32_t *)idev->current_color.cmyk);
|
||||
}
|
||||
wts_halftone_line_8(idev->wcooked, original_y, width, n_planes,
|
||||
idev->band_offset_x, idev->band_offset_y, buffer, (const byte *)cmyk_buffer);
|
Loading…
Reference in New Issue
Block a user