diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-01-28 17:25:14 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-01-28 17:25:14 +0000 |
commit | 929c8ed53e821f3f48dafc2757cb6b7cdc16cd7c (patch) | |
tree | e4477b1a0ea7216a6ecc3ce320ca301f505a1045 /modules | |
parent | eb83e738981f693f440228cca9f1f9fee8b61941 (diff) | |
download | gtk+-929c8ed53e821f3f48dafc2757cb6b7cdc16cd7c.tar.gz |
Fix problems in computing MISSING hint.
Mon Jan 28 12:17:07 2002 Owen Taylor <otaylor@redhat.com>
* pixbuf-render.c (compute_hint): Fix problems in computing
MISSING hint.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/engines/pixbuf/ChangeLog | 5 | ||||
-rw-r--r-- | modules/engines/pixbuf/pixbuf-render.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/modules/engines/pixbuf/ChangeLog b/modules/engines/pixbuf/ChangeLog index b1cc574825..d98ef9689e 100644 --- a/modules/engines/pixbuf/ChangeLog +++ b/modules/engines/pixbuf/ChangeLog @@ -1,3 +1,8 @@ +Mon Jan 28 12:17:07 2002 Owen Taylor <otaylor@redhat.com> + + * pixbuf-render.c (compute_hint): Fix problems in computing + MISSING hint. + Sun Jan 27 23:58:13 2002 Owen Taylor <otaylor@redhat.com> * pixbuf-render.c (compute_hint): Optimize the case diff --git a/modules/engines/pixbuf/pixbuf-render.c b/modules/engines/pixbuf/pixbuf-render.c index d34632b236..8d4f41fc5b 100644 --- a/modules/engines/pixbuf/pixbuf-render.c +++ b/modules/engines/pixbuf/pixbuf-render.c @@ -344,9 +344,9 @@ compute_hint (GdkPixbuf *pixbuf, if (n_channels == 4) a = *(p++); - for (j = x0 + 1; j < x1 ; j++) + for (j = x0; j < x1 ; j++) { - if (n_channels != 4 || p[4] != 0) + if (n_channels != 4 || p[3] != 0) { hints &= ~THEME_MISSING; if (!(hints & THEME_CONSTANT_ROWS)) |