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.
This commit is contained in:
Owen Taylor 2002-01-28 20:36:38 +00:00 committed by Owen Taylor
parent ddff4ea49f
commit cef69b57fe
2 changed files with 9 additions and 4 deletions

View File

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

View File

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