Fix #if G_BYTE_ORDER == GDK_LSB_FIRST.

2005-06-17  Owen Taylor  <otaylor@redhat.com>

        * gdk/gdkcairo.c (gdk_cairo_set_source_pixbuf): Fix
        #if G_BYTE_ORDER == GDK_LSB_FIRST.
This commit is contained in:
Owen Taylor 2005-06-17 14:17:43 +00:00 committed by Owen Taylor
parent b060f6e12d
commit c96795ffb3
4 changed files with 17 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2005-06-17 Owen Taylor <otaylor@redhat.com>
* gdk/gdkcairo.c (gdk_cairo_set_source_pixbuf): Fix
#if G_BYTE_ORDER == GDK_LSB_FIRST.
2005-06-17 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (validate_visible_area): don't try to update

View File

@ -1,3 +1,8 @@
2005-06-17 Owen Taylor <otaylor@redhat.com>
* gdk/gdkcairo.c (gdk_cairo_set_source_pixbuf): Fix
#if G_BYTE_ORDER == GDK_LSB_FIRST.
2005-06-17 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (validate_visible_area): don't try to update

View File

@ -1,3 +1,8 @@
2005-06-17 Owen Taylor <otaylor@redhat.com>
* gdk/gdkcairo.c (gdk_cairo_set_source_pixbuf): Fix
#if G_BYTE_ORDER == GDK_LSB_FIRST.
2005-06-17 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (validate_visible_area): don't try to update

View File

@ -175,10 +175,10 @@ gdk_cairo_set_source_pixbuf (cairo_t *cr,
while (p < end)
{
#if G_BYTE_ORDER == GDK_LSB_FIRST
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
q[0] = p[2];
q[1] = p[1];
q[2] = p[2];
q[2] = p[0];
#else
q[0] = p[0];
q[1] = p[1];