parent
a3e9e38fc1
commit
e50e3f1541
32
libspectre-0.2.9-alignment.patch
Normal file
32
libspectre-0.2.9-alignment.patch
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
From 4d34d6cfe9bd8fc7b8355a39502374d9d6426ed0 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Marek Kasik <mkasik@redhat.com>
|
||||||
|
Date: Mon, 29 Nov 2021 16:27:57 +0100
|
||||||
|
Subject: [PATCH] Set alignment for rendering to default
|
||||||
|
|
||||||
|
Previous aligning to 32 bytes rendered EPS in wrong way (not always but often).
|
||||||
|
Setting default alignment which aligns to size of pointer fixes this issue.
|
||||||
|
|
||||||
|
The commit which set it to the 32 was talking about alignment of 4 bytes so I guess
|
||||||
|
that there were bits interchanged with bytes.
|
||||||
|
|
||||||
|
Fixes #44
|
||||||
|
---
|
||||||
|
libspectre/spectre-device.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/libspectre/spectre-device.c b/libspectre/spectre-device.c
|
||||||
|
index 708fcb0..6959db0 100644
|
||||||
|
--- a/libspectre/spectre-device.c
|
||||||
|
+++ b/libspectre/spectre-device.c
|
||||||
|
@@ -331,7 +331,7 @@ spectre_device_render (SpectreDevice *device,
|
||||||
|
args[arg++] = dsp_format = _spectre_strdup_printf ("-dDisplayFormat=%d",
|
||||||
|
DISPLAY_COLORS_RGB |
|
||||||
|
DISPLAY_DEPTH_8 |
|
||||||
|
- DISPLAY_ROW_ALIGN_32 |
|
||||||
|
+ DISPLAY_ROW_ALIGN_DEFAULT |
|
||||||
|
#ifdef WORDS_BIGENDIAN
|
||||||
|
DISPLAY_UNUSED_FIRST |
|
||||||
|
DISPLAY_BIGENDIAN |
|
||||||
|
--
|
||||||
|
2.33.1
|
||||||
|
|
@ -1,12 +1,14 @@
|
|||||||
Name: libspectre
|
Name: libspectre
|
||||||
Version: 0.2.9
|
Version: 0.2.9
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
Summary: A library for rendering PostScript(TM) documents
|
Summary: A library for rendering PostScript(TM) documents
|
||||||
|
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://libspectre.freedesktop.org
|
URL: http://libspectre.freedesktop.org
|
||||||
Source0: http://libspectre.freedesktop.org/releases/%{name}-%{version}.tar.gz
|
Source0: http://libspectre.freedesktop.org/releases/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
|
Patch0: libspectre-0.2.9-alignment.patch
|
||||||
|
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
%if 0%{?fedora} > 27
|
%if 0%{?fedora} > 27
|
||||||
@ -30,7 +32,7 @@ developing applications that use %{name}.
|
|||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup
|
%autosetup -p1
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -61,6 +63,10 @@ rm -fv %{buildroot}%{_libdir}/libspectre.la
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Dec 03 2021 Marek Kasik <mkasik@redhat.com> - 0.2.9-5
|
||||||
|
- Set alignment for rendering to default
|
||||||
|
- Resolves: #1938506
|
||||||
|
|
||||||
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.9-4
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.9-4
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user