mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
- Compile-able with MS-VC6
- Compile-able with MS-VC2015+QT5.18 - transbarency in TCL backend - correct TCL demo - README changes
This commit is contained in:
13
backend/ps.c
13
backend/ps.c
@ -113,19 +113,18 @@ INTERNAL int ps_plot(struct zint_symbol *symbol) {
|
||||
int colour_index, colour_rect_counter;
|
||||
char ps_color[30];
|
||||
int draw_background = 1;
|
||||
|
||||
if (strlen(symbol->bgcolour) > 6) {
|
||||
if ((ctoi(symbol->bgcolour[6]) == 0) && (ctoi(symbol->bgcolour[7]) == 0)) {
|
||||
draw_background = 0;
|
||||
}
|
||||
}
|
||||
|
||||
struct zint_vector_rect *rect;
|
||||
struct zint_vector_hexagon *hex;
|
||||
struct zint_vector_circle *circle;
|
||||
struct zint_vector_string *string;
|
||||
const char *locale = NULL;
|
||||
|
||||
if (strlen(symbol->bgcolour) > 6) {
|
||||
if ((ctoi(symbol->bgcolour[6]) == 0) && (ctoi(symbol->bgcolour[7]) == 0)) {
|
||||
draw_background = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (symbol->output_options & BARCODE_STDOUT) {
|
||||
feps = stdout;
|
||||
} else {
|
||||
|
@ -132,6 +132,7 @@ INTERNAL int svg_plot(struct zint_symbol *symbol) {
|
||||
struct zint_vector_string *string;
|
||||
|
||||
char colour_code[7];
|
||||
int html_len;
|
||||
|
||||
#ifdef _MSC_VER
|
||||
char* html_string;
|
||||
@ -151,7 +152,7 @@ INTERNAL int svg_plot(struct zint_symbol *symbol) {
|
||||
bg_alpha = (16 * ctoi(symbol->bgcolour[6])) + ctoi(symbol->bgcolour[7]);
|
||||
}
|
||||
|
||||
int html_len = strlen((char *)symbol->text) + 1;
|
||||
html_len = strlen((char *)symbol->text) + 1;
|
||||
|
||||
for (i = 0; i < (int) strlen((char *)symbol->text); i++) {
|
||||
switch(symbol->text[i]) {
|
||||
|
Reference in New Issue
Block a user