]> granicus.if.org Git - php/commitdiff
Fix brightness filter (argument ingnored)
authorPierre Joye <pajoye@php.net>
Wed, 11 Dec 2002 22:23:51 +0000 (22:23 +0000)
committerPierre Joye <pajoye@php.net>
Wed, 11 Dec 2002 22:23:51 +0000 (22:23 +0000)
ext/gd/libgd/gd.c

index b82ab51382eedd1e3d93814440eff48162eaabd0..96684eab6c1b9bf2766aaefda66a24954beea8eb 100644 (file)
@@ -3410,7 +3410,7 @@ int gdImageContrast(gdImagePtr src, double contrast)
                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) {