diff options
author | Saurabh Chauhan <mopriadevteam@gmail.com> | 2023-04-11 20:15:14 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2023-04-11 20:15:14 +0000 |
commit | 5630fe2a9be7de9ed05a190528c2588c6f5498db (patch) | |
tree | 3ce5e92be0b2d0c2684039748a6f4e44c7c0d17f | |
parent | 0746cf1edf3af1830c2cca344807b116bc8d32ee (diff) | |
parent | 24c6cd2f33d2474fbffdb308a77518e5056a8584 (diff) | |
download | BuiltInPrintService-5630fe2a9be7de9ed05a190528c2588c6f5498db.tar.gz |
Removed redundant strip height adjustment code am: 95340340a6 am: b08c539487 am: df259cc5c9 am: 24c6cd2f33
Original change: https://android-review.googlesource.com/c/platform/packages/services/BuiltInPrintService/+/2531539
Change-Id: Ie883e5c171acbe19d56a576988dcf20f3bcc5d24
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rwxr-xr-x | jni/lib/lib_wprint.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/jni/lib/lib_wprint.c b/jni/lib/lib_wprint.c index c63137c..ac39a81 100755 --- a/jni/lib/lib_wprint.c +++ b/jni/lib/lib_wprint.c @@ -1948,18 +1948,6 @@ status_t wprintGetFinalJobParams(wprint_job_params_t *job_params, job_params->accepts_os_name = printer_cap->docSourceOsName; job_params->accepts_os_version = printer_cap->docSourceOsVersion; - // Strip height calculation for PCLm by taking the GCD of printable_height and - // printer_cap->stripHeight, this needs to be called after printable_area_get() - int adjusted_strip_height = job_params->printable_area_height % printer_cap->stripHeight; - if (job_params->pcl_type == PCLm && adjusted_strip_height != 0) { - for (i = 1; i <= job_params->printable_area_height && i <= printer_cap->stripHeight; ++i) { - if (job_params->printable_area_height % i == 0 && printer_cap->stripHeight % i == 0) { - adjusted_strip_height = i; - } - } - job_params->strip_height = adjusted_strip_height; - } - return result; } |