iliaa           Tue Dec 10 12:57:54 2002 EDT

  Modified files:              (Branch: PHP_4_3)
    /php4/ext/gd        gd.c 
  Log:
  MFH
  
  
Index: php4/ext/gd/gd.c
diff -u php4/ext/gd/gd.c:1.221.2.5 php4/ext/gd/gd.c:1.221.2.6
--- php4/ext/gd/gd.c:1.221.2.5  Wed Dec  4 18:43:06 2002
+++ php4/ext/gd/gd.c    Tue Dec 10 12:57:54 2002
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: gd.c,v 1.221.2.5 2002/12/04 23:43:06 iliaa Exp $ */
+/* $Id: gd.c,v 1.221.2.6 2002/12/10 17:57:54 iliaa Exp $ */
 
 /* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center, 
    Cold Spring Harbor Labs. */
@@ -1526,12 +1526,14 @@
                                }
                                (*func_p)(im, i, fp);
                                break;
+#if HAVE_LIBGD20
                        case PHP_GDIMG_TYPE_GD:
                                if(im->trueColor){
                                        gdImageTrueColorToPalette(im,1,256);
                                }
                                (*func_p)(im, fp);
                                break;
+#endif                         
                        default:
                                (*func_p)(im, fp);
                                break;
@@ -1563,12 +1565,14 @@
                                }
                                (*func_p)(im, q, tmp);
                                break;
+#if HAVE_LIBGD20
                        case PHP_GDIMG_TYPE_GD:
                                if (im->trueColor) {
                                        gdImageTrueColorToPalette(im,1,256);
                                }
                                (*func_p)(im, tmp);
                                break;
+#endif                         
                        default:
                                (*func_p)(im, tmp);
                                break;



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to