Skip to content
Snippets Groups Projects
Commit 4bf278aa authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

options + typos

parent 37a5311c
No related branches found
No related tags found
No related merge requests found
/* $Id: Context.h,v 1.24 2000-12-27 17:25:52 geuzaine Exp $ */ /* $Id: Context.h,v 1.25 2000-12-28 18:58:37 geuzaine Exp $ */
#ifndef _CONTEXT_H_ #ifndef _CONTEXT_H_
#define _CONTEXT_H_ #define _CONTEXT_H_
...@@ -143,7 +143,9 @@ class Context_T { ...@@ -143,7 +143,9 @@ class Context_T {
/* print options */ /* print options */
struct{ struct{
int format; int format;
int eps_quality, jpeg_quality; int eps_quality;
int jpeg_quality;
int gif_dither, gif_sort, gif_interlace, gif_transparent;
char *font; char *font;
int font_size, gl_fonts; int font_size, gl_fonts;
} print; } print;
......
/* $Id: Options.h,v 1.13 2000-12-27 17:25:52 geuzaine Exp $ */ /* $Id: Options.h,v 1.14 2000-12-28 18:58:37 geuzaine Exp $ */
#ifndef _OPTIONS_H_ #ifndef _OPTIONS_H_
#define _OPTIONS_H_ #define _OPTIONS_H_
...@@ -200,6 +200,10 @@ StringXNumber PrintOptions_Number[] = { ...@@ -200,6 +200,10 @@ StringXNumber PrintOptions_Number[] = {
{ "Format" , GMSH_INT, (void*)&CTX.print.format , FORMAT_AUTO }, { "Format" , GMSH_INT, (void*)&CTX.print.format , FORMAT_AUTO },
{ "EpsQuality" , GMSH_INT, (void*)&CTX.print.eps_quality , 1 }, { "EpsQuality" , GMSH_INT, (void*)&CTX.print.eps_quality , 1 },
{ "JpegQuality" , GMSH_INT, (void*)&CTX.print.jpeg_quality , 100 }, { "JpegQuality" , GMSH_INT, (void*)&CTX.print.jpeg_quality , 100 },
{ "GifDither" , GMSH_INT, (void*)&CTX.print.gif_dither , 1 },
{ "GifSort" , GMSH_INT, (void*)&CTX.print.gif_sort , 1 },
{ "GifInterlace" , GMSH_INT, (void*)&CTX.print.gif_interlace , 0 },
{ "GifTransparent" , GMSH_INT, (void*)&CTX.print.gif_transparent, 0 },
{ "FontSize" , GMSH_INT, (void*)&CTX.print.font_size , 12. }, { "FontSize" , GMSH_INT, (void*)&CTX.print.font_size , 12. },
{ NULL , GMSH_DOUBLE, NULL , 0. } { NULL , GMSH_DOUBLE, NULL , 0. }
} ; } ;
......
/* $Id: Malloc.cpp,v 1.4 2000-11-26 18:43:48 geuzaine Exp $ */ /* $Id: Malloc.cpp,v 1.5 2000-12-28 18:58:37 geuzaine Exp $ */
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <malloc.h> #include <malloc.h>
...@@ -41,4 +41,5 @@ void Free(void *ptr) ...@@ -41,4 +41,5 @@ void Free(void *ptr)
{ {
if (ptr == NULL) return; if (ptr == NULL) return;
free(ptr); free(ptr);
ptr = NULL;
} }
/* $Id: CbFile.cpp,v 1.18 2000-12-27 10:07:23 geuzaine Exp $ */ /* $Id: CbFile.cpp,v 1.19 2000-12-28 18:58:37 geuzaine Exp $ */
#include <unistd.h> #include <unistd.h>
...@@ -124,7 +124,8 @@ void CreateFile (char *name, int format) { ...@@ -124,7 +124,8 @@ void CreateFile (char *name, int format) {
} }
Replot(); Replot();
create_jpeg(fp, CTX.viewport[2]-CTX.viewport[0], create_jpeg(fp, CTX.viewport[2]-CTX.viewport[0],
CTX.viewport[3]-CTX.viewport[1]); CTX.viewport[3]-CTX.viewport[1],
CTX.print.jpeg_quality);
Msg(INFOS, "JPEG Creation Complete '%s'", name); Msg(INFOS, "JPEG Creation Complete '%s'", name);
Msg (INFO, "Wrote File '%s'", name); Msg (INFO, "Wrote File '%s'", name);
fclose(fp); fclose(fp);
...@@ -137,7 +138,14 @@ void CreateFile (char *name, int format) { ...@@ -137,7 +138,14 @@ void CreateFile (char *name, int format) {
} }
Replot(); Replot();
create_gif(fp, CTX.viewport[2]-CTX.viewport[0], create_gif(fp, CTX.viewport[2]-CTX.viewport[0],
CTX.viewport[3]-CTX.viewport[1]); CTX.viewport[3]-CTX.viewport[1],
CTX.print.gif_dither,
CTX.print.gif_sort,
CTX.print.gif_interlace,
CTX.print.gif_transparent,
UNPACK_RED(CTX.color.bg),
UNPACK_GREEN(CTX.color.bg),
UNPACK_BLUE(CTX.color.bg));
Msg(INFOS, "GIF Creation Complete '%s'", name); Msg(INFOS, "GIF Creation Complete '%s'", name);
Msg (INFO, "Wrote File '%s'", name); Msg (INFO, "Wrote File '%s'", name);
fclose(fp); fclose(fp);
......
...@@ -304,9 +304,9 @@ files. ...@@ -304,9 +304,9 @@ files.
<td><font face="Helvetica, Arial" size=-1> <td><font face="Helvetica, Arial" size=-1>
New in 1.00: Added PPM and YUV output; Corrected nested If/Endif; New in 1.00: Added PPM and YUV output; Corrected nested If/Endif;
Corrected seg. fault on repeated saves; Slightly changed the Corrected several bugs for pixel output and enhanced GIF output
post-processing file format to allow both single and double precision (dithering, transparency); Slightly changed the post-processing file
numbers. format to allow both single and double precision numbers.
<p> <p>
New in 0.999: Added JPEG output and easy MPEG generation (see t8.geo in the New in 0.999: Added JPEG output and easy MPEG generation (see t8.geo in the
tutorial); Clean up of export functions; small fixes; Linux versions tutorial); Clean up of export functions; small fixes; Linux versions
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment