diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-01-28 20:36:38 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-01-28 20:36:38 +0000 |
commit | cef69b57fe66034534d701629b77e4fc69885f6b (patch) | |
tree | 4a721adaa7d6483a8be3a9f68ef8ab5450e08d56 /modules | |
parent | ddff4ea49f0a7f5b1223a8902354f2f6c360c286 (diff) | |
download | gtk+-cef69b57fe66034534d701629b77e4fc69885f6b.tar.gz |
Fix hint computation again.
Mon Jan 28 15:34:43 2002 Owen Taylor <otaylor@redhat.com>
* pixbuf-render.c (compute_hint): Fix hint computation
again.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/engines/pixbuf/ChangeLog | 5 | ||||
-rw-r--r-- | modules/engines/pixbuf/pixbuf-render.c | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/modules/engines/pixbuf/ChangeLog b/modules/engines/pixbuf/ChangeLog index d98ef9689e..751dfdb9a4 100644 --- a/modules/engines/pixbuf/ChangeLog +++ b/modules/engines/pixbuf/ChangeLog @@ -1,3 +1,8 @@ +Mon Jan 28 15:34:43 2002 Owen Taylor <otaylor@redhat.com> + + * pixbuf-render.c (compute_hint): Fix hint computation + again. + Mon Jan 28 12:17:07 2002 Owen Taylor <otaylor@redhat.com> * pixbuf-render.c (compute_hint): Fix problems in computing diff --git a/modules/engines/pixbuf/pixbuf-render.c b/modules/engines/pixbuf/pixbuf-render.c index 8d4f41fc5b..a0dccdf170 100644 --- a/modules/engines/pixbuf/pixbuf-render.c +++ b/modules/engines/pixbuf/pixbuf-render.c @@ -336,13 +336,13 @@ compute_hint (GdkPixbuf *pixbuf, for (i = y0; i < y1; i++) { guchar *p = data + i * rowstride + x0 * n_channels; - guchar r = *(p++); - guchar g = *(p++); - guchar b = *(p++); + guchar r = p[0]; + guchar g = p[1]; + guchar b = p[2]; guchar a = 0; if (n_channels == 4) - a = *(p++); + a = p[3]; for (j = x0; j < x1 ; j++) { |