/[CvsGraph]/cvsgraph/cvsgraph.c
ViewVC logotype

Diff of /cvsgraph/cvsgraph.c

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.49, Wed Oct 20 22:03:36 2004 UTC revision 1.50, Thu Oct 21 20:08:42 2004 UTC
# Line 3778  Line 3778 
3778          conf.msg_color          = black_color;          conf.msg_color          = black_color;
3779    
3780          conf.image_quality      = 100;          conf.image_quality      = 100;
3781            conf.image_compress     = -1;   /* Use default zlib setting */
3782          conf.rev_maxline        = -1;   /* Checked later to set to default */          conf.rev_maxline        = -1;   /* Checked later to set to default */
3783    
3784          read_config(confpath);          read_config(confpath);
# Line 3807  Line 3808 
3808          if(conf.thick_lines > 11)          if(conf.thick_lines > 11)
3809                  conf.thick_lines = 11;                  conf.thick_lines = 11;
3810    
3811            if(conf.image_quality < 0 || conf.image_quality > 100)
3812            {
3813                    stack_msg(MSG_WARN, "JPEG quality (image_quality) must be between 0 and 100");
3814                    conf.image_quality = 100;
3815            }
3816    
3817            if(conf.image_compress < -1 || conf.image_compress > 9)
3818            {
3819                    stack_msg(MSG_WARN, "PNG compression (image_compress) must be between -1 and 9");
3820                    conf.image_compress = -1;
3821            }
3822    
3823          append_slash(&conf.cvsroot);          append_slash(&conf.cvsroot);
3824          append_slash(&conf.cvsmodule);          append_slash(&conf.cvsmodule);
3825    
# Line 3866  Line 3879 
3879          {          {
3880                  /* Create an image */                  /* Create an image */
3881                  im = make_image(rcs);                  im = make_image(rcs);
3882    
3883                    if(conf.image_interlace)
3884                            gdImageInterlace(im, 1);
3885    
3886  #ifdef DEBUG_IMAGEMAP  #ifdef DEBUG_IMAGEMAP
3887                  {                  {
3888                          FILE *nulfile = fopen("/dev/null", "w");                          FILE *nulfile = fopen("/dev/null", "w");
# Line 3886  Line 3903 
3903  #ifdef HAVE_IMAGE_PNG  #ifdef HAVE_IMAGE_PNG
3904                  default:                  default:
3905                  case IMAGE_PNG:                  case IMAGE_PNG:
3906    #ifdef HAVE_GDIMAGEPNGEX
3907                            gdImagePngEx(im, fp, conf.image_compress);
3908    #else
3909                          gdImagePng(im, fp);                          gdImagePng(im, fp);
3910    #endif
3911                          break;                          break;
3912  #endif  #endif
3913  #ifdef HAVE_IMAGE_JPEG  #ifdef HAVE_IMAGE_JPEG

Legend:
Removed from v.1.49  
changed lines
  Added in v.1.50

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0