From f601f5506e630aa2004a603aec7149e686cd941b Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Sat, 17 Oct 2015 17:50:42 +0000
Subject: [PATCH] prepare 1.3.9

---
 CMakeLists.txt    |  2 +-
 gl2ps.c           | 14 +++++++-------
 gl2ps.h           |  6 +++---
 gl2ps.tex         | 14 +++++++-------
 gl2psTest.c       |  2 +-
 gl2psTestSimple.c | 20 ++++++++++----------
 6 files changed, 29 insertions(+), 29 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index be9d621..575bace 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,5 +1,5 @@
 #  GL2PS, an OpenGL to PostScript Printing Library
-#  Copyright (C) 1999-2012 C. Geuzaine
+#  Copyright (C) 1999-2015 C. Geuzaine
 # 
 #  This program is free software; you can redistribute it and/or
 #  modify it under the terms of either:
diff --git a/gl2ps.c b/gl2ps.c
index 593d232..c6c6d41 100644
--- a/gl2ps.c
+++ b/gl2ps.c
@@ -1,6 +1,6 @@
 /*
  * GL2PS, an OpenGL to PostScript Printing Library
- * Copyright (C) 1999-2012 C. Geuzaine
+ * Copyright (C) 1999-2015 C. Geuzaine
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of either:
@@ -2186,9 +2186,9 @@ static void gl2psBuildPolygonBoundary(GL2PSbsptree *tree)
  *********************************************************************/
 
 static void gl2psAddPolyPrimitive(GLshort type, GLshort numverts,
-                                  GL2PSvertex *verts, GLint offset, 
-                                  GLfloat ofactor, GLfloat ounits, 
-                                  GLushort pattern, GLint factor, 
+                                  GL2PSvertex *verts, GLint offset,
+                                  GLfloat ofactor, GLfloat ounits,
+                                  GLushort pattern, GLint factor,
                                   GLfloat width, char boundary)
 {
   GL2PSprimitive *prim;
@@ -2329,8 +2329,8 @@ static void gl2psParseFeedbackBuffer(GLint used)
         used -= 2;
         ounits = current[1];
         break;
-      case GL2PS_END_OFFSET_TOKEN : 
-        offset = 0; 
+      case GL2PS_END_OFFSET_TOKEN :
+        offset = 0;
         ofactor = 0.0;
         ounits = 0.0;
         break;
@@ -5099,7 +5099,7 @@ static void gl2psPrintSVGPixmap(GLfloat x, GLfloat y, GL2PSimage *pixmap)
   y -= pixmap->zoom_y * (GLfloat)pixmap->height;
   gl2psPrintf("<image x=\"%g\" y=\"%g\" width=\"%d\" height=\"%d\"\n",
               0., 0., pixmap->width, pixmap->height);
-  gl2psPrintf("transform=\"matrix(%g,0,0,%g,%g,%g)\"\n", 
+  gl2psPrintf("transform=\"matrix(%g,0,0,%g,%g,%g)\"\n",
               pixmap->zoom_x, pixmap->zoom_y, x, y);
   gl2psPrintf("xlink:href=\"data:image/png;base64,");
   for(i = 0; i < gl2psListNbr(png); i++){
diff --git a/gl2ps.h b/gl2ps.h
index 978c2f1..d3e7c0c 100644
--- a/gl2ps.h
+++ b/gl2ps.h
@@ -1,6 +1,6 @@
 /*
  * GL2PS, an OpenGL to PostScript Printing Library
- * Copyright (C) 1999-2012 C. Geuzaine
+ * Copyright (C) 1999-2015 C. Geuzaine
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of either:
@@ -84,14 +84,14 @@
 
 #define GL2PS_MAJOR_VERSION 1
 #define GL2PS_MINOR_VERSION 3
-#define GL2PS_PATCH_VERSION 8
+#define GL2PS_PATCH_VERSION 9
 #define GL2PS_EXTRA_VERSION ""
 
 #define GL2PS_VERSION (GL2PS_MAJOR_VERSION + \
                        0.01 * GL2PS_MINOR_VERSION + \
                        0.0001 * GL2PS_PATCH_VERSION)
 
-#define GL2PS_COPYRIGHT "(C) 1999-2012 C. Geuzaine"
+#define GL2PS_COPYRIGHT "(C) 1999-2015 C. Geuzaine"
 
 /* Output file formats (the values and the ordering are important!) */
 
diff --git a/gl2ps.tex b/gl2ps.tex
index ddd9586..8486f07 100644
--- a/gl2ps.tex
+++ b/gl2ps.tex
@@ -1,6 +1,6 @@
 %
 %  GL2PS, an OpenGL to PostScript Printing Library
-%  Copyright (C) 1999-2012 C. Geuzaine
+%  Copyright (C) 1999-2015 C. Geuzaine
 %
 %  This program is free software; you can redistribute it and/or
 %  modify it under the terms of either:
@@ -62,7 +62,6 @@
 
 \title{GL2PS: an OpenGL to PostScript printing library}
 \author{Christophe Geuzaine}
-%\date{Version 1.3.8, November 27 2012}
 
 \maketitle
 
@@ -92,7 +91,7 @@
 </center>
 <h2>Download</h2>
 The latest stable version of GL2PS is <a
-href="http://geuz.org/gl2ps/src/gl2ps-1.3.8.tgz">gl2ps-1.3.8.tgz</a>.  Older
+href="http://geuz.org/gl2ps/src/gl2ps-1.3.9.tgz">gl2ps-1.3.9.tgz</a>.  Older
 versions and nightly source snapshots are available <a
 href="http://geuz.org/gl2ps/src/">here</a>.  For read-only svn access use:
 '<code>svn co https://geuz.org/svn/gl2ps/trunk gl2ps</code>' (username:
@@ -106,7 +105,7 @@ password: gl2ps). You can also subscribe to the <a
 href="http://geuz.org/mailman/listinfo/gl2ps-announce/">gl2ps-announce</a>
 mailing list to be notified automatically when a new version of GL2PS is
 released.
-<!-- form action="https://www.paypal.com/cgi-bin/webscr" method="post">
+<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
   <p>
     <input type="hidden" name="cmd" value="_xclick">
     <input type="hidden" name="business" value="paypal@geuz.org">
@@ -118,7 +117,7 @@ released.
     <input type="submit" value="PayPal" style="display:inline;">
     donation.
   </p>
-</form -->
+</form>
 <h2>Documentation</h2>}
 
 \tableofcontents
@@ -900,7 +899,7 @@ rotated text in PDF output;
 \noemail{David Lonie}{david.lonie@kitware.com} for VTK patches;
 %
 \noemail{Pantxo Diribarne}{pantxo.diribarne@gmail.com} for polygon offset
-improvement.
+improvement and image scaling fix for SVG output.
 
 \section{Links}
 \label{sec:links}
@@ -1048,7 +1047,8 @@ anymore.
 \item[1.3.7] (Sep 2, 2012) Minor documentation and build system fixes.
 \item[1.3.8] (Nov 27, 2012) Handling of arbitrary length messages in
   gl2psPrintf; added \dd{gl2psTextOptColor}; minor fixes.
-\item[1.3.9] () Improved \dd{GL_POLYGON_OFFSET_FILL}.
+\item[1.3.9] (Oct 17, 2015) Improved \dd{GL_POLYGON_OFFSET_FILL}; fixed scaling
+  of images in SVG output.
 \end{description}
 
 \end{document}
diff --git a/gl2psTest.c b/gl2psTest.c
index 291c6f9..2d2a825 100644
--- a/gl2psTest.c
+++ b/gl2psTest.c
@@ -1,6 +1,6 @@
 /*
  * GL2PS, an OpenGL to PostScript Printing Library
- * Copyright (C) 1999-2012 Christophe Geuzaine <geuz@geuz.org>
+ * Copyright (C) 1999-2015 Christophe Geuzaine <geuz@geuz.org>
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of either:
diff --git a/gl2psTestSimple.c b/gl2psTestSimple.c
index 5fbd14c..e14aa3e 100644
--- a/gl2psTestSimple.c
+++ b/gl2psTestSimple.c
@@ -1,6 +1,6 @@
 /*
  * GL2PS, an OpenGL to PostScript Printing Library
- * Copyright (C) 1999-2012 Christophe Geuzaine <geuz@geuz.org>
+ * Copyright (C) 1999-2015 Christophe Geuzaine <geuz@geuz.org>
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of either:
@@ -68,15 +68,15 @@ static void display(void)
   glPopMatrix();
 
 
-  /* draw three triangles on the same zplane and use polygon offset 
-     to order the layers: the grey triangle should be drawn on the 
+  /* draw three triangles on the same zplane and use polygon offset
+     to order the layers: the grey triangle should be drawn on the
      middle layer */
   glEnable(GL_POLYGON_OFFSET_FILL);
   glPolygonOffset(1.0, 1.0);
   gl2psEnable(GL2PS_POLYGON_OFFSET_FILL);
   glColor3f(0.,0.,0.);
-  glBegin(GL_TRIANGLES); 
-  glVertex3f(0.6, 0.8, 0); 
+  glBegin(GL_TRIANGLES);
+  glVertex3f(0.6, 0.8, 0);
   glVertex3f(0.8, 0.8, 0);
   glVertex3f(0.7, 0.92, 0);
   glEnd();
@@ -84,8 +84,8 @@ static void display(void)
   glPolygonOffset(2.0, 2.0);
   gl2psEnable(GL2PS_POLYGON_OFFSET_FILL);
   glColor3f(1.,1.,1.);
-  glBegin(GL_TRIANGLES); 
-  glVertex3f(0.7, 0.8, 0); 
+  glBegin(GL_TRIANGLES);
+  glVertex3f(0.7, 0.8, 0);
   glVertex3f(0.9, 0.8, 0);
   glVertex3f(0.8, 0.92, 0);
   glEnd();
@@ -93,12 +93,12 @@ static void display(void)
   glPolygonOffset(1.5, 1.5);
   gl2psEnable(GL2PS_POLYGON_OFFSET_FILL);
   glColor3f(0.5,0.5,0.5);
-  glBegin(GL_TRIANGLES); 
-  glVertex3f(0.65, 0.86, 0); 
+  glBegin(GL_TRIANGLES);
+  glVertex3f(0.65, 0.86, 0);
   glVertex3f(0.85, 0.86, 0);
   glVertex3f(0.75, 0.98, 0);
   glEnd();
-	
+
   glDisable(GL_POLYGON_OFFSET_FILL);
   gl2psDisable(GL2PS_POLYGON_OFFSET_FILL);
 
-- 
GitLab