mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 13:11:13 +00:00
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:
parent
ddff4ea49f
commit
cef69b57fe
@ -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
|
||||
|
@ -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++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user