mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-12 22:25:59 -04:00
Force white squares (not same as bgcolour) in Ultracode
This commit is contained in:
parent
2153ed416c
commit
20f767c4b6
6 changed files with 22 additions and 19 deletions
|
@ -46,7 +46,7 @@ int colour_to_red(int colour) {
|
|||
int return_val = 0;
|
||||
|
||||
switch(colour) {
|
||||
case 0: // White
|
||||
case 8: // White
|
||||
case 3: // Magenta
|
||||
case 4: // Red
|
||||
case 5: // Yellow
|
||||
|
@ -61,7 +61,7 @@ int colour_to_green(int colour) {
|
|||
int return_val = 0;
|
||||
|
||||
switch(colour) {
|
||||
case 0: // White
|
||||
case 8: // White
|
||||
case 1: // Cyan
|
||||
case 5: // Yellow
|
||||
case 6: // Green
|
||||
|
@ -76,7 +76,7 @@ int colour_to_blue(int colour) {
|
|||
int return_val = 0;
|
||||
|
||||
switch(colour) {
|
||||
case 0: // White
|
||||
case 8: // White
|
||||
case 1: // Cyan
|
||||
case 2: // Blue
|
||||
case 3: // Magenta
|
||||
|
@ -617,15 +617,18 @@ INTERNAL int emf_plot(struct zint_symbol *symbol) {
|
|||
}
|
||||
|
||||
if (symbol->symbology == BARCODE_ULTRA) {
|
||||
printf("Using Ultra draw\n");
|
||||
for(i = 0; i < 8; i++) {
|
||||
if (rectangle_count_bycolour[i]) {
|
||||
fwrite(&emr_selectobject_colour[i], sizeof (emr_selectobject_t), 1, emf_file);
|
||||
|
||||
printf("colour %d\n", i);
|
||||
rect = symbol->vector->rectangles;
|
||||
this_rectangle = 0;
|
||||
while (rect) {
|
||||
if (rect->colour == i) {
|
||||
fwrite(&rectangle[this_rectangle], sizeof (emr_rectangle_t), 1, emf_file);
|
||||
printf("rect\n");
|
||||
}
|
||||
this_rectangle++;
|
||||
rect = rect->next;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue