From bf02e28d2329d4f9994c468c03c5030171915f0d Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Mon, 11 Apr 2005 05:00:29 +0000 Subject: [PATCH] changed initial alloc in ListRealloc --- TODO | 4 +++- gl2ps.c | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/TODO b/TODO index 0560047..9c64625 100644 --- a/TODO +++ b/TODO @@ -1,4 +1,6 @@ -$Id: TODO,v 1.16 2004-09-01 00:58:47 geuzaine Exp $ +$Id: TODO,v 1.17 2005-04-11 05:00:29 geuzaine Exp $ + +------------------------------------------------------------------------ * At last, after so many help requests, I have a small contribution -- rotated text in ps output. Actually, I just figured out the ps code, diff --git a/gl2ps.c b/gl2ps.c index 84d718c..d1c5d24 100644 --- a/gl2ps.c +++ b/gl2ps.c @@ -1,4 +1,4 @@ -/* $Id: gl2ps.c,v 1.205 2005-03-22 07:45:33 geuzaine Exp $ */ +/* $Id: gl2ps.c,v 1.206 2005-04-11 05:00:29 geuzaine Exp $ */ /* * GL2PS, an OpenGL to PostScript Printing Library * Copyright (C) 1999-2005 Christophe Geuzaine <geuz@geuz.org> @@ -483,7 +483,7 @@ static void gl2psListRealloc(GL2PSlist *list, GLint n) } if(n <= 0) return; if(!list->array){ - list->nmax = ((n - 1) / list->incr + 1) * list->incr; + list->nmax = n; list->array = (char*)gl2psMalloc(list->nmax * list->size); } else{ -- GitLab