From 89f6a834d279720a3a31453f0d0c3b2efb29a4a5 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Thu, 9 May 2019 12:21:09 -0400 Subject: [PATCH] shinko: Generic parsing code got rows/cols swapped. Whoops. --- backend_shinko.c | 6 ++++-- backend_shinko.h | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/backend_shinko.c b/backend_shinko.c index d01b021..41cb9d1 100644 --- a/backend_shinko.c +++ b/backend_shinko.c @@ -132,6 +132,8 @@ int sinfonia_read_parse(int data_fd, uint32_t model, jp->media = hdr[6]; if (hdr[1] != 6245) jp->method = hdr[8]; + if (hdr[1] == 2245 || hdr[1] == 6245) + jp->quality = hdr[9]; if (hdr[1] == 1245 || hdr[1] == 2145) jp->oc_mode = hdr[9]; else @@ -140,8 +142,8 @@ int sinfonia_read_parse(int data_fd, uint32_t model, jp->mattedepth = hdr[11]; if (hdr[1] == 1245) jp->dust = hdr[12]; - jp->rows = hdr[13]; - jp->columns = hdr[14]; + jp->columns = hdr[13]; + jp->rows = hdr[14]; jp->copies = hdr[15]; if (hdr[1] == 6145) diff --git a/backend_shinko.h b/backend_shinko.h index 6a71d9d..b398f57 100644 --- a/backend_shinko.h +++ b/backend_shinko.h @@ -41,6 +41,8 @@ struct sinfonia_job_param { uint32_t media; uint32_t oc_mode; + uint32_t quality; + int mattedepth; uint32_t dust;