mirror of
https://git.code.sf.net/p/zint/code
synced 2025-12-17 09:57:02 +00:00
GRIDMATRIX optimization wasn't adding in cost of double-byte properly
This commit is contained in:
@@ -201,6 +201,7 @@ static void define_mode(unsigned int gbdata[], const size_t length, char* mode,
|
||||
if (byte_count == 512 || (double_byte && byte_count == 511)) {
|
||||
cur_costs[GM_B] = head_costs[GM_B];
|
||||
if (double_byte && byte_count == 511) {
|
||||
cur_costs[GM_B] += 48; /* 8 * GM_MULT */
|
||||
double_byte = 0; /* Splitting double-byte so mark as single */
|
||||
}
|
||||
byte_count = 0;
|
||||
|
||||
Reference in New Issue
Block a user