pajoye          Wed Dec 11 17:23:51 2002 EDT

  Modified files:              
    /php4/ext/gd/libgd  gd.c 
  Log:
  Fix brightness filter (argument ingnored)
  
  
Index: php4/ext/gd/libgd/gd.c
diff -u php4/ext/gd/libgd/gd.c:1.35 php4/ext/gd/libgd/gd.c:1.36
--- php4/ext/gd/libgd/gd.c:1.35 Wed Dec 11 16:55:45 2002
+++ php4/ext/gd/libgd/gd.c      Wed Dec 11 17:23:51 2002
@@ -3410,7 +3410,7 @@
                return 0;
        }
        
-       contrast = (double)(100.0-80.0)/100.0;
+       contrast = (double)(100.0-contrast)/100.0;
        contrast = contrast*contrast;
        
        for (y=0; y<src->sy; ++y) {



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

Reply via email to