mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-14 15:14:49 -04:00
extended ASCII bug fix
This commit is contained in:
parent
89f02b7dd5
commit
00aeeea0b1
2 changed files with 54 additions and 30 deletions
|
@ -107,9 +107,17 @@ void reysmooth(int *indexliste)
|
|||
void c16k_set_a(unsigned char source, int values[], int *bar_chars)
|
||||
{
|
||||
if(source > 127) {
|
||||
values[(*bar_chars)] = source + 64 - 128;
|
||||
if(source < 160) {
|
||||
values[(*bar_chars)] = source + 64 - 128;
|
||||
} else {
|
||||
values[(*bar_chars)] = source - 32 - 128;
|
||||
}
|
||||
} else {
|
||||
values[(*bar_chars)] = source + 64;
|
||||
if(source < 32) {
|
||||
values[(*bar_chars)] = source + 64;
|
||||
} else {
|
||||
values[(*bar_chars)] = source - 32;
|
||||
}
|
||||
}
|
||||
(*bar_chars)++;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue