]> granicus.if.org Git - php/commitdiff
- tabs
authorPierre Joye <pajoye@php.net>
Wed, 2 Jul 2003 11:36:17 +0000 (11:36 +0000)
committerPierre Joye <pajoye@php.net>
Wed, 2 Jul 2003 11:36:17 +0000 (11:36 +0000)
ext/gd/libgd/gd.c

index 769cca388edafe4d216247d9ee936176354d9c73..5dce696113ba46e67b73f752b109d9ca5b6dbba2 100644 (file)
@@ -2075,12 +2075,9 @@ void gdImageCopyMerge (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int s
                        } else {
                                dc = gdImageGetPixel(dst, tox, toy);
 
-                                ncR = (int)gdImageRed (src, c) * (pct / 100.0) 
-                                        + gdImageRed (dst, dc) * ((100 - pct) / 100.0);
-                                ncG = (int)gdImageGreen (src, c) * (pct / 100.0) 
-                                        + (int)gdImageGreen (dst, dc) * ((100 - pct) / 100.0);
-                                ncB = (int)gdImageBlue (src, c) * (pct / 100.0) 
-                                        + gdImageBlue (dst, dc) * ((100 - pct) / 100.0);
+                               ncR = (int)gdImageRed (src, c) * (pct / 100.0) + gdImageRed (dst, dc) * ((100 - pct) / 100.0);
+                               ncG = (int)gdImageGreen (src, c) * (pct / 100.0) + (int)gdImageGreen (dst, dc) * ((100 - pct) / 100.0);
+                               ncB = (int)gdImageBlue (src, c) * (pct / 100.0) + gdImageBlue (dst, dc) * ((100 - pct) / 100.0);
 
                                /* Find a reasonable color */
                                nc = gdImageColorResolve (dst, ncR, ncG, ncB);