mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
ULTRA_COMPRESSION option_1 -> option_3 typo
This commit is contained in:
parent
129fa81c41
commit
111c819e43
@ -123,7 +123,7 @@ static const int tiles[] = {
|
||||
* contradictions, so this is a "best guess" implementation. Because it is not guaranteed
|
||||
* to be correct this compression is not applied by default. To enable compression set
|
||||
*
|
||||
* symbol->option_1 = ULTRA_COMPRESSION;
|
||||
* symbol->option_3 = ULTRA_COMPRESSION;
|
||||
*
|
||||
* Code compression should be enabled by default when it has been implemented according to
|
||||
* a more reliable version of the specification.
|
||||
@ -594,7 +594,7 @@ int ultra_generate_codewords(struct zint_symbol *symbol, const unsigned char sou
|
||||
}
|
||||
}
|
||||
|
||||
if (symbol->option_1 != ULTRA_COMPRESSION) {
|
||||
if (symbol->option_3 != ULTRA_COMPRESSION) {
|
||||
// Force eight-bit mode by default as other modes are poorly documented
|
||||
symbol_mode = EIGHTBIT_MODE;
|
||||
}
|
||||
@ -705,7 +705,7 @@ int ultra_generate_codewords(struct zint_symbol *symbol, const unsigned char sou
|
||||
}
|
||||
|
||||
/* Attempt encoding in all three modes to see which offers best compaction and store results */
|
||||
if (symbol->option_1 == ULTRA_COMPRESSION) {
|
||||
if (symbol->option_3 == ULTRA_COMPRESSION) {
|
||||
current_mode = symbol_mode;
|
||||
input_locn = 0;
|
||||
do {
|
||||
|
@ -270,7 +270,7 @@ extern "C" {
|
||||
// QR, Han Xin, Grid Matrix specific options (option_3)
|
||||
#define ZINT_FULL_MULTIBYTE 200
|
||||
|
||||
// Ultracode specific option
|
||||
// Ultracode specific option (option_3)
|
||||
#define ULTRA_COMPRESSION 128
|
||||
|
||||
// Warning and error conditions
|
||||
|
Loading…
Reference in New Issue
Block a user