mirror of
https://git.code.sf.net/p/zint/code
synced 2025-06-06 01:21:30 -04:00
Allow user to select bgcolour in Ultracode
This commit is contained in:
parent
d99bda9385
commit
752b1511b6
1 changed files with 4 additions and 8 deletions
|
@ -798,10 +798,10 @@ INTERNAL int ultracode(struct zint_symbol *symbol, const unsigned char source[],
|
||||||
char tilepat[6];
|
char tilepat[6];
|
||||||
int tilex, tiley;
|
int tilex, tiley;
|
||||||
int dcc;
|
int dcc;
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
int* data_codewords;
|
int* data_codewords;
|
||||||
char* pattern;
|
char* pattern;
|
||||||
#endif /* _MSC_VER */
|
#endif /* _MSC_VER */
|
||||||
|
|
||||||
cw_memalloc = in_length * 2;
|
cw_memalloc = in_length * 2;
|
||||||
if (cw_memalloc < 283) {
|
if (cw_memalloc < 283) {
|
||||||
|
@ -1026,9 +1026,5 @@ INTERNAL int ultracode(struct zint_symbol *symbol, const unsigned char source[],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Override any user selected colours */
|
|
||||||
strcpy(symbol->fgcolour, "000000");
|
|
||||||
strcpy(symbol->bgcolour, "ffffff");
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue