~ojwb/survex/master

« back to all changes in this revision

Viewing changes to src/cad3d.c

  • Committer: Olly Betts
  • Date: 2010-06-18 07:16:42 UTC
  • mfrom: (2003.1.853)
  • Revision ID: git-v1:75fe355c16c77b1090c4426a3dc0b8dabca31904
Rename branches/survex-1_1 to trunk.

git-svn-id: file:///home/survex-svn/survex/trunk@3454 4b37db11-9a0c-4f06-9ece-9ab7cdaee568

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 * Also useful as an example of how to use the img code in your own programs
4
4
 */
5
5
 
6
 
/* Copyright (C) 1994-2004 Olly Betts
 
6
/* Copyright (C) 1994-2004,2008 Olly Betts
7
7
 * Copyright (C) 2004 John Pybus (SVG Output code)
8
8
 *
9
9
 * This program is free software; you can redistribute it and/or modify
18
18
 *
19
19
 * You should have received a copy of the GNU General Public License
20
20
 * along with this program; if not, write to the Free Software
21
 
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
21
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
22
22
 */
23
23
 
24
24
/* #define DEBUG_CAD3D */
460
460
   fSurface = fSurface; /* unused */
461
461
   fprintf(fh, "<text transform=\"translate(%.3f %.3f)\">",
462
462
           p->x * factor, p->y * -factor);
463
 
   fprintf(fh, s);
464
 
   fprintf(fh, "</text>\n");
 
463
   fputs(s, fh);
 
464
   fputs("</text>\n", fh);
465
465
   set_name(p, s);
466
466
}
467
467