test: BWIPP: add fixedeclevel to PDF417/QRCODE variants when

`eclevel` given; update BWIPP to latest
This commit is contained in:
gitlost 2024-07-22 23:29:37 +01:00
parent 9c701f1009
commit 3c7a702169
2 changed files with 2 additions and 2 deletions

View File

@ -2869,7 +2869,7 @@ int testUtilBwipp(int index, const struct zint_symbol *symbol, int option_1, int
const int row_height = symbology == BARCODE_MICROPDF417 || symbology == BARCODE_HIBC_MICPDF ? 2 : 3; const int row_height = symbology == BARCODE_MICROPDF417 || symbology == BARCODE_HIBC_MICPDF ? 2 : 3;
for (r = 0; r < symbol->rows; r++) bwipp_row_height[r] = row_height; for (r = 0; r < symbol->rows; r++) bwipp_row_height[r] = row_height;
if (option_1 >= 0) { if (option_1 >= 0) {
sprintf(bwipp_opts_buf + strlen(bwipp_opts_buf), "%seclevel=%d", sprintf(bwipp_opts_buf + strlen(bwipp_opts_buf), "%seclevel=%d fixedeclevel",
strlen(bwipp_opts_buf) ? " " : "", option_1); strlen(bwipp_opts_buf) ? " " : "", option_1);
bwipp_opts = bwipp_opts_buf; bwipp_opts = bwipp_opts_buf;
} }
@ -3176,7 +3176,7 @@ int testUtilBwipp(int index, const struct zint_symbol *symbol, int option_1, int
|| symbology == BARCODE_RMQR) { || symbology == BARCODE_RMQR) {
if (option_1 >= 1 && option_1 <= 4) { if (option_1 >= 1 && option_1 <= 4) {
static const char eccs[4] = { 'L', 'M', 'Q', 'H' }; static const char eccs[4] = { 'L', 'M', 'Q', 'H' };
sprintf(bwipp_opts_buf + strlen(bwipp_opts_buf), "%seclevel=%c", sprintf(bwipp_opts_buf + strlen(bwipp_opts_buf), "%seclevel=%c fixedeclevel",
strlen(bwipp_opts_buf) ? " " : "", eccs[option_1 - 1]); strlen(bwipp_opts_buf) ? " " : "", eccs[option_1 - 1]);
bwipp_opts = bwipp_opts_buf; bwipp_opts = bwipp_opts_buf;
} }