From 929c8ed53e821f3f48dafc2757cb6b7cdc16cd7c Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Mon, 28 Jan 2002 17:25:14 +0000 Subject: [PATCH] Fix problems in computing MISSING hint. Mon Jan 28 12:17:07 2002 Owen Taylor * pixbuf-render.c (compute_hint): Fix problems in computing MISSING hint. --- modules/engines/pixbuf/ChangeLog | 5 +++++ 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 + + * pixbuf-render.c (compute_hint): Fix problems in computing + MISSING hint. + Sun Jan 27 23:58:13 2002 Owen Taylor * 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))