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:
@ -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>
|
Mon Jan 28 12:17:07 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* pixbuf-render.c (compute_hint): Fix problems in computing
|
* pixbuf-render.c (compute_hint): Fix problems in computing
|
||||||
|
|||||||
@ -336,13 +336,13 @@ compute_hint (GdkPixbuf *pixbuf,
|
|||||||
for (i = y0; i < y1; i++)
|
for (i = y0; i < y1; i++)
|
||||||
{
|
{
|
||||||
guchar *p = data + i * rowstride + x0 * n_channels;
|
guchar *p = data + i * rowstride + x0 * n_channels;
|
||||||
guchar r = *(p++);
|
guchar r = p[0];
|
||||||
guchar g = *(p++);
|
guchar g = p[1];
|
||||||
guchar b = *(p++);
|
guchar b = p[2];
|
||||||
guchar a = 0;
|
guchar a = 0;
|
||||||
|
|
||||||
if (n_channels == 4)
|
if (n_channels == 4)
|
||||||
a = *(p++);
|
a = p[3];
|
||||||
|
|
||||||
for (j = x0; j < x1 ; j++)
|
for (j = x0; j < x1 ; j++)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user