Blame SOURCES/libspectre-0.2.9-alignment.patch

e36b88
From 4d34d6cfe9bd8fc7b8355a39502374d9d6426ed0 Mon Sep 17 00:00:00 2001
e36b88
From: Marek Kasik <mkasik@redhat.com>
e36b88
Date: Mon, 29 Nov 2021 16:27:57 +0100
e36b88
Subject: [PATCH] Set alignment for rendering to default
e36b88
e36b88
Previous aligning to 32 bytes rendered EPS in wrong way (not always but often).
e36b88
Setting default alignment which aligns to size of pointer fixes this issue.
e36b88
e36b88
The commit which set it to the 32 was talking about alignment of 4 bytes so I guess
e36b88
that there were bits interchanged with bytes.
e36b88
e36b88
Fixes #44
e36b88
---
e36b88
 libspectre/spectre-device.c | 2 +-
e36b88
 1 file changed, 1 insertion(+), 1 deletion(-)
e36b88
e36b88
diff --git a/libspectre/spectre-device.c b/libspectre/spectre-device.c
e36b88
index 708fcb0..6959db0 100644
e36b88
--- a/libspectre/spectre-device.c
e36b88
+++ b/libspectre/spectre-device.c
e36b88
@@ -331,7 +331,7 @@ spectre_device_render (SpectreDevice        *device,
e36b88
 	args[arg++] = dsp_format = _spectre_strdup_printf ("-dDisplayFormat=%d",
e36b88
 							   DISPLAY_COLORS_RGB |
e36b88
 							   DISPLAY_DEPTH_8 |
e36b88
-							   DISPLAY_ROW_ALIGN_32 |
e36b88
+							   DISPLAY_ROW_ALIGN_DEFAULT |
e36b88
 #ifdef WORDS_BIGENDIAN
e36b88
 							   DISPLAY_UNUSED_FIRST |
e36b88
 							   DISPLAY_BIGENDIAN |
e36b88
-- 
e36b88
2.33.1
e36b88