/[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.63.2.1, Mon Nov 13 20:42:23 2006 UTC revision 1.63.2.2, Wed May 21 11:31:12 2008 UTC
# Line 1551  Line 1551 
1551          int r2 = 2*r;          int r2 = 2*r;
1552          if(!r)          if(!r)
1553                  gdImageFilledRectangle(im, x1, y1, x2, y2, bgcolor->id);                  gdImageFilledRectangle(im, x1, y1, x2, y2, bgcolor->id);
1554  #ifdef HAVE_GDIMAGEFILLEDARC  #ifdef HAVE_GD_FILLEDARC
1555          else          else
1556          {          {
1557                  gdImageFilledArc(im, x1+r, y1+r, r2, r2, 180, 270, bgcolor->id, gdArc);                  gdImageFilledArc(im, x1+r, y1+r, r2, r2, 180, 270, bgcolor->id, gdArc);
# Line 1585  Line 1585 
1585                          gdImageArc(im, x2-r, y2-r+1, r2, r2,   0,  90, clr(im, NULL, NULL, NULL, 0)->id);                          gdImageArc(im, x2-r, y2-r+1, r2, r2,   0,  90, clr(im, NULL, NULL, NULL, 0)->id);
1586                  }                  }
1587                  gdImageArc(im, x2-r, y2-r, r2, r2,   0,  90, color->id);                  gdImageArc(im, x2-r, y2-r, r2, r2,   0,  90, color->id);
1588  #if !defined(NOGDFILL) && !defined(HAVE_GDIMAGEFILLEDARC)  #if !defined(NOGDFILL) && !defined(HAVE_GD_FILLEDARC)
1589                  /* BUG: We clip manually because libgd segfaults on out of bound values */                  /* BUG: We clip manually because libgd segfaults on out of bound values */
1590                  if((x1+x2)/2 >= 0 && (x1+x2)/2 < gdImageSX(im) && (y1+y2)/2 >= 0 && (y1+y2)/2 < gdImageSY(im))                  if((x1+x2)/2 >= 0 && (x1+x2)/2 < gdImageSX(im) && (y1+y2)/2 >= 0 && (y1+y2)/2 < gdImageSY(im))
1591                          gdImageFillToBorder(im, (x1+x2)/2, (y1+y2)/2, color->id, bgcolor->id);                          gdImageFillToBorder(im, (x1+x2)/2, (y1+y2)/2, color->id, bgcolor->id);

Legend:
Removed from v.1.63.2.1  
changed lines
  Added in v.1.63.2.2

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0