summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2021-08-14 08:09:36 -0400
committerSolomon Peachy <pizza@shaftnet.org>2021-08-14 08:09:36 -0400
commit886e2908557bc2e8fb42e9a82d2afc1b1665f94e (patch)
treeea6781acb7c1252d14ecb0543d311035f340a5c5
parent63ef27e83758b8043682d8e17582f445e970432a (diff)
downloadselphy_print-886e2908557bc2e8fb42e9a82d2afc1b1665f94e.tar.gz
selphy_print-886e2908557bc2e8fb42e9a82d2afc1b1665f94e.tar.bz2
selphy_print-886e2908557bc2e8fb42e9a82d2afc1b1665f94e.zip
lib70x: Fix a rewind check regression in the CPD80 processing code
-rw-r--r--lib70x/libMitsuD70ImageReProcess.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib70x/libMitsuD70ImageReProcess.c b/lib70x/libMitsuD70ImageReProcess.c
index 705eb05..fb8507a 100644
--- a/lib70x/libMitsuD70ImageReProcess.c
+++ b/lib70x/libMitsuD70ImageReProcess.c
@@ -57,7 +57,7 @@
*/
-#define LIB_VERSION "0.10.1"
+#define LIB_VERSION "0.10.2"
#include <stdio.h>
#include <stdint.h>
@@ -1250,9 +1250,10 @@ int do_image_effect80(struct CPCData *cpc, struct CPCData *ecpc, struct BandImag
CImageEffect70_DoGamma(data, input, output, reverse);
/* Figure out if we can get away with rewinding, or not... */
- if (cpc->REV[0]) {
+ if (!ecpc)
+ rew[0] = 1; /* if we don't have ecpc data (ie not in superfine mode) then rewinding is ok */
+ else if (cpc->REV[0])
rew[0] = CImageEffect70_JudgeReverseSkipRibbon(cpc, output, input->cols, input->rows, 1);
- }
rew[1] = 1;
/* If we're NOT rewinding,