summaryrefslogtreecommitdiffstats
path: root/backend_mitsu.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-02-29 15:40:01 -0500
committerSolomon Peachy <pizza@shaftnet.org>2020-02-29 15:40:01 -0500
commit8a461202020138c671d53df63013abce06eac071 (patch)
tree800d2fd24ff370b99f41aa93cae2847f5b292c6f /backend_mitsu.c
parent83ab376540512fe48ae13cf8c7f75ce917bff88b (diff)
downloadselphy_print-8a461202020138c671d53df63013abce06eac071.tar.gz
selphy_print-8a461202020138c671d53df63013abce06eac071.tar.bz2
selphy_print-8a461202020138c671d53df63013abce06eac071.zip
mitsu_m1: Add in an 8bpp testjob, and fix a TON of bugs.
In theory, we're ready to try printing.
Diffstat (limited to 'backend_mitsu.c')
-rw-r--r--backend_mitsu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend_mitsu.c b/backend_mitsu.c
index 7df43ff..ff22c74 100644
--- a/backend_mitsu.c
+++ b/backend_mitsu.c
@@ -199,7 +199,7 @@ int mitsu_readlamdata(const char *fname, uint16_t lamstride,
remain -= i;
}
/* Back off the buffer so we "wrap" on the print row. */
- *datalen -= ((lamstride - cols) * 2);
+ *datalen -= ((lamstride - cols) * bpp);
}
return CUPS_BACKEND_OK;