diff options
author | Saurabh Chauhan <mopriadevteam@gmail.com> | 2023-04-11 19:38:41 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2023-04-11 19:38:41 +0000 |
commit | 24c6cd2f33d2474fbffdb308a77518e5056a8584 (patch) | |
tree | 4226c4720a5180ddb1e3677943e2ef96ff0360f9 | |
parent | cef757ae137feffcbc2380044ce6bdccb7252921 (diff) | |
parent | df259cc5c9e2fddd111e435341f9d4566b1756ad (diff) | |
download | BuiltInPrintService-24c6cd2f33d2474fbffdb308a77518e5056a8584.tar.gz |
Removed redundant strip height adjustment code am: 95340340a6 am: b08c539487 am: df259cc5c9
Original change: https://android-review.googlesource.com/c/platform/packages/services/BuiltInPrintService/+/2531539
Change-Id: Ide39b11e4842e361ed0d2efa08a6f55230302c05
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; } |