summaryrefslogtreecommitdiffstats
path: root/backend_mitsud90.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-03-03 07:33:30 -0500
committerSolomon Peachy <pizza@shaftnet.org>2020-03-03 07:33:30 -0500
commitfe2e046fabe6a78c292e0015d56dd73e782e37ed (patch)
treec263b280e842c760e099dad2045a373c14e7e6b7 /backend_mitsud90.c
parent5a8d7dfee1256b8d44a5f28cf77770494cc0a7eb (diff)
downloadselphy_print-fe2e046fabe6a78c292e0015d56dd73e782e37ed.tar.gz
selphy_print-fe2e046fabe6a78c292e0015d56dd73e782e37ed.tar.bz2
selphy_print-fe2e046fabe6a78c292e0015d56dd73e782e37ed.zip
mitsu_m1: Correct the buffer offset used for OpRateMatte calculations
Diffstat (limited to 'backend_mitsud90.c')
-rw-r--r--backend_mitsud90.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/backend_mitsud90.c b/backend_mitsud90.c
index e31b11a..0e11028 100644
--- a/backend_mitsud90.c
+++ b/backend_mitsud90.c
@@ -948,7 +948,7 @@ static int mitsud90_main_loop(void *vctx, const void *vjob) {
/* Deal with lamination settings */
if (job->hdr.overcoat == 3) {
- uint8_t *ptr = convbuf + (output.rows * output.cols * sizeof(uint16_t) * 3);
+ int pre_matte_len = job->datalen;
ret = cpm1_fillmatte(job);
if (ret) {
mitsud90_cleanup_job(job);
@@ -956,7 +956,7 @@ static int mitsud90_main_loop(void *vctx, const void *vjob) {
}
job->hdr.oprate = ctx->lib.M1_CalcOpRateMatte(output.rows,
output.cols,
- ptr);
+ job->databuf + pre_matte_len);
} else {
job->hdr.oprate = ctx->lib.M1_CalcOpRateGloss(output.rows,
output.cols);
@@ -1644,7 +1644,7 @@ static const char *mitsud90_prefixes[] = {
/* Exported */
struct dyesub_backend mitsud90_backend = {
.name = "Mitsubishi CP-D90/CP-M1",
- .version = "0.24" " (lib " LIBMITSU_VER ")",
+ .version = "0.25" " (lib " LIBMITSU_VER ")",
.uri_prefixes = mitsud90_prefixes,
.cmdline_arg = mitsud90_cmdline_arg,
.cmdline_usage = mitsud90_cmdline,