[glabels/zint: 3/15] Alterations to zint rendering



commit e1e80392cc40e87cd673e1d55a450d393432c240
Author: Sam Lown <me samlown com>
Date:   Sun May 30 19:33:37 2010 +0200

    Alterations to zint rendering

 src/bc-zint.c |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/src/bc-zint.c b/src/bc-zint.c
index d713ef8..3ef3d6f 100644
--- a/src/bc-zint.c
+++ b/src/bc-zint.c
@@ -100,7 +100,7 @@ gl_barcode_zint_new (const gchar          *id,
   /*
 	 * With the size and scale set, send a request to Zint renderer
 	 */
-	if (!ZBarcode_Render(symbol, (unsigned int) text_flag)) {
+	if (!ZBarcode_Render(symbol, (unsigned int) !text_flag)) {
 		ZBarcode_Delete(symbol);
 		g_message("Zint Rendering Error: %s", symbol->errtxt);
 		return NULL;
@@ -127,9 +127,9 @@ static glBarcode *render_zint(struct zint_symbol *symbol, gboolean text_flag) {
 	glBarcodeLine *line;
 	glBarcodeChar *bchar;
 
-	zint_render      *render;
-	zint_render_line *zline;
-	zint_render_char *zchar;
+	struct zint_render      *render;
+	struct zint_render_line *zline;
+	struct zint_render_char *zchar;
 
 	render = symbol->rendered;
 	gbc = g_new0(glBarcode, 1);
@@ -149,6 +149,9 @@ static glBarcode *render_zint(struct zint_symbol *symbol, gboolean text_flag) {
 		line->y = (double) zline->y;
 
 		gbc->lines = g_list_append (gbc->lines, line);
+
+		// g_message ("Zint Adding Line at: %f x %f dim: %f x %f", line->x, line->y, line->width, line->length);
+		zline = zline->next;
 	}
 
 	/*



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]