-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * bc-qrcode.c: front-end to QRcode module
+ * bc-iec18004.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2006 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#include <config.h>
#include "bc-iec18004.h"
+#include <glib.h>
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
-#include <glib/gmessages.h>
#include <qrencode.h>
#include "debug.h"
+
/*========================================================*/
/* Private macros and constants. */
/*========================================================*/
+
#define MIN_PIXEL_SIZE 1.0
+
/*===========================================*/
/* Local function prototypes */
/*===========================================*/
gdouble w,
gdouble h);
+
/*****************************************************************************/
/* Generate intermediate representation of barcode. */
/*****************************************************************************/
return gbc;
}
+
/*--------------------------------------------------------------------------
* PRIVATE. Render to glBarcode intermediate representation of barcode.
*--------------------------------------------------------------------------*/
gbc->height = i_height * pixel_size;
gbc->width = i_width * pixel_size;
-#if 0
- g_print ("w=%f, h=%f\n", gbc->width, gbc->height);
-#endif
-
return gbc;
}
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */