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.
This commit is contained in:
Owen Taylor 2002-01-28 17:25:14 +00:00 committed by Owen Taylor
parent eb83e73898
commit 929c8ed53e
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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))