summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/pixops/pixops.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2000-01-30 19:46:23 +0000
committerOwen Taylor <otaylor@src.gnome.org>2000-01-30 19:46:23 +0000
commite63fd0e6920daa75449f335b6ef7ea67e61d6e1f (patch)
tree48fa18b32a30b27bd8fd6d8e4057d2edbd662083 /gdk-pixbuf/pixops/pixops.c
parent1cfa0f5a732b84a75a3e6220003340db39516dd9 (diff)
downloadgtk+-e63fd0e6920daa75449f335b6ef7ea67e61d6e1f.tar.gz
Fix from Peter Wainwright to fix 4a => 4a scaling.
Mon Jan 31 12:38:50 2000 Owen Taylor <otaylor@redhat.com> * gdk-pixbuf/pixops/pixops.c (scale_line): Fix from Peter Wainwright to fix 4a => 4a scaling.
Diffstat (limited to 'gdk-pixbuf/pixops/pixops.c')
-rw-r--r--gdk-pixbuf/pixops/pixops.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdk-pixbuf/pixops/pixops.c b/gdk-pixbuf/pixops/pixops.c
index f0e28f1a23..5834a26a3a 100644
--- a/gdk-pixbuf/pixops/pixops.c
+++ b/gdk-pixbuf/pixops/pixops.c
@@ -711,9 +711,9 @@ scale_line (int *weights, int n_x, int n_y,
unsigned int ta;
ta = q[3] * line_weights[j];
- r = ta * q[0];
- g = ta * q[1];
- b = ta * q[2];
+ r += ta * q[0];
+ g += ta * q[1];
+ b += ta * q[2];
a += ta;
q += src_channels;