Thanks Andrew, I can now compile gd again on my system.

-Hazen

On Jan 29, 2007, at 11:17 PM, Andrew Roach wrote:

> Update of /cvsroot/plplot/plplot/drivers
> In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20104/drivers
>
> Modified Files:
>       gd.c
> Log Message:
> Should fix the problem with GD aborting when freetype isn't present.
>
> Index: gd.c
> ===================================================================
> RCS file: /cvsroot/plplot/plplot/drivers/gd.c,v
> retrieving revision 1.46
> retrieving revision 1.47
> diff -u -d -r1.46 -r1.47
> --- gd.c      19 Jan 2007 09:30:00 -0000      1.46
> +++ gd.c      30 Jan 2007 04:17:11 -0000      1.47
> @@ -132,7 +132,7 @@
>   *  and finally one of each.
>   */
>
> -char* plD_DEVICE_INFO_gd =
> +char* plD_DEVICE_INFO_gd =
>  #if defined(PLD_png)
>    "png:PNG file:0:gd:39:png\n"
>  #endif
> @@ -144,6 +144,11 @@
>  #endif
>  ;
>
> +#if GD2_VERS >= 2
> +#ifdef HAVE_FREETYPE
> +#define SMOOTH_LINES_OK
> +#endif
> +#endif
>
>  #ifdef HAVE_FREETYPE
>
> @@ -707,7 +712,7 @@
>      y1 = dev->pngy - y1;
>      y2 = dev->pngy - y2;
>
> -    #if GD2_VERS >= 2
> +    #ifdef SMOOTH_LINES_OK
>        if (dev->smooth==1)
>          {
>            gdImageSetAntiAliased(dev->im_out,dev->colour);
> @@ -764,7 +769,7 @@
>          points[i].y = dev->pngy - (pls->dev_y[i]/dev->scale);
>           }
>
> -    #if GD2_VERS >= 2
> +    #ifdef SMOOTH_LINES_OK
>        if (dev->smooth==1)
>          {
>            gdImageSetAntiAliased(dev->im_out,dev->colour);
>
>
> ---------------------------------------------------------------------- 
> ---
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to  
> share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php? 
> page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Plplot-cvs mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/plplot-cvs


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to