mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-27 13:34:19 -04:00
Correct size of PostNet
Add pitch and height restrictions for rendering PostNet and PLANET symbols. Thanks to Jim Evans.
This commit is contained in:
parent
e2f35eaf39
commit
4f86c12ec4
1 changed files with 6 additions and 0 deletions
|
@ -309,6 +309,12 @@ int render_plot(struct zint_symbol *symbol, float width, float height)
|
|||
render->width = 0.508 * GL_CONST * total_area_width_x;
|
||||
render->height = 4.064 * GL_CONST;
|
||||
}
|
||||
|
||||
if((symbol->symbology == BARCODE_POSTNET) || (symbol->symbology == BARCODE_PLANET)) {
|
||||
/* The size of PostNet and PLANET are fized */
|
||||
render->width = 0.508 * GL_CONST * total_area_width_x;
|
||||
render->height = 2.921 * GL_CONST;
|
||||
}
|
||||
|
||||
if(((symbol->symbology == BARCODE_AUSPOST) || (symbol->symbology == BARCODE_AUSREPLY)) ||
|
||||
((symbol->symbology == BARCODE_AUSROUTE) || (symbol->symbology == BARCODE_AUSREDIRECT))) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue