mitsud90: Dimensional fixes for panorama split

This commit is contained in:
Solomon Peachy 2021-07-12 11:08:27 -04:00
parent 42806398b3
commit a0c6b7bf8a
2 changed files with 8 additions and 8 deletions

View File

@ -736,14 +736,14 @@ static int mitsud90_panorama_splitjob(struct mitsud90_printjob *injob, struct mi
inrows = be16_to_cpu(injob->hdr.rows); inrows = be16_to_cpu(injob->hdr.rows);
/* Work out parameters */ /* Work out parameters */
if (inrows == 6084) { if (inrows == 6028) {
numpanels = 3; numpanels = 3;
overlap_rows = 600; overlap_rows = 600 + 28;
max_rows = 2428; max_rows = 2428;
} else if (inrows == 4256) { } else if (inrows == 4228) {
numpanels = 2; numpanels = 2;
max_rows = 2428; max_rows = 2428;
overlap_rows = 600; overlap_rows = 600 + 28;
} else { } else {
ERROR("Invalid panorama row count (%d)\n", inrows); ERROR("Invalid panorama row count (%d)\n", inrows);
return CUPS_BACKEND_CANCEL; return CUPS_BACKEND_CANCEL;

View File

@ -22,13 +22,13 @@ case "${model}" in
mitsubishi-d90dw) mitsubishi-d90dw)
cols=1852 cols=1852
drows=2428 drows=2428
overlap=600 overlap=628 # 600 + 28
if [ "${printsize}" eq "6x20" ] ; then if [ "${printsize}" eq "6x20" ] ; then
inrows=6084 inrows=6028
elif [ "${printsize}" eq "6x14" ] ; then elif [ "${printsize}" eq "6x14" ] ; then
inrows=4256 inrows=4228
else else
echo "D90 supportx 6x20 and 6x14 only" echo "D90 supports 6x20 and 6x14 only"
exit 1 exit 1
fi fi
;; ;;